TYPO3 CMS  TYPO3_7-6
adodb-postgres8.inc.php
Go to the documentation of this file.
1 <?php
2 /*
3  @version v5.20.3 01-Jan-2016
4  @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
5  @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
6  Released under both BSD license and Lesser GPL library license.
7  Whenever there is any discrepancy between the two licenses,
8  the BSD license will take precedence.
9  Set tabs to 4.
10 
11  Postgres8 support.
12 */
13 
14 // security - hide paths
15 if (!defined('ADODB_DIR')) die();
16 
17 include_once(ADODB_DIR."/drivers/adodb-postgres7.inc.php");
18 
20 {
21  var $databaseType = 'postgres8';
22 
23 
34  function _insertid($table, $column)
35  {
36  return empty($table) || empty($column)
37  ? $this->GetOne("SELECT lastval()")
38  : $this->GetOne("SELECT currval(pg_get_serial_sequence('$table', '$column'))");
39  }
40 }
41 
43 {
44  var $databaseType = "postgres8";
45 }
46 
48 {
49  var $databaseType = "postgres8";
50 }
_insertid($table, $column)