[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 V5.19 23-Apr-2014 (c) 2000-2014 John Lim (jlim#natsoft.com). All rights reserved. 4 Released under both BSD license and Lesser GPL library license. 5 Whenever there is any discrepancy between the two licenses, 6 the BSD license will take precedence. 7 Set tabs to 4. 8 9 Postgres8 support. 10 */ 11 12 // security - hide paths 13 if (!defined('ADODB_DIR')) die(); 14 15 include_once(ADODB_DIR."/drivers/adodb-postgres7.inc.php"); 16 17 class ADODB_postgres8 extends ADODB_postgres7 18 { 19 var $databaseType = 'postgres8'; 20 21 22 /** 23 * Retrieve last inserted ID 24 * Don't use OIDs, since as per {@link http://php.net/function.pg-last-oid php manual } 25 * they won't be there in Postgres 8.1 26 * (and they're not what the application wants back, anyway). 27 * @param string $table 28 * @param string $column 29 * @return int last inserted ID for given table/column, or the most recently 30 * returned one if $table or $column are empty 31 */ 32 function _insertid($table, $column) 33 { 34 return empty($table) || empty($column) 35 ? $this->GetOne("SELECT lastval()") 36 : $this->GetOne("SELECT currval(pg_get_serial_sequence('$table', '$column'))"); 37 } 38 } 39 40 class ADORecordSet_postgres8 extends ADORecordSet_postgres7 41 { 42 var $databaseType = "postgres8"; 43 } 44 45 class ADORecordSet_assoc_postgres8 extends ADORecordSet_assoc_postgres7 46 { 47 var $databaseType = "postgres8"; 48 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |