TYPO3 CMS  TYPO3_7-6
ADODB_postgres8 Class Reference
Inheritance diagram for ADODB_postgres8:
ADODB_postgres7 ADODB_postgres64 ADODB_postgres9

Public Member Functions

 _insertid ($table, $column)
 
- Public Member Functions inherited from ADODB_postgres7
 __construct ()
 
 SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)
 
 MetaForeignKeys ($table, $owner=false, $upper=false)
 
 _old_MetaForeignKeys ($table, $owner=false, $upper=false)
 
 _query ($sql, $inputarr=false)
 
 GetCharSet ()
 
 SetCharSet ($charset_name)
 
- Public Member Functions inherited from ADODB_postgres64
 __construct ()
 
 ServerInfo ()
 
 IfNull ( $field, $ifNull)
 
 pg_insert_id ($tablename, $fieldname)
 
 _insertid ($table, $column)
 
 _affectedrows ()
 
 BeginTrans ()
 
 RowLock ($tables, $where, $col='1 as adodbignore')
 
 CommitTrans ($ok=true)
 
 RollbackTrans ()
 
 MetaTables ($ttype=false, $showSchema=false, $mask=false)
 
 qstr ($s, $magic_quotes=false)
 
 SQLDate ($fmt, $col=false)
 
 UpdateBlobFile ($table, $column, $path, $where, $blobtype='BLOB')
 
 BlobDelete ( $blob)
 
 GuessOID ($oid)
 
 BlobDecode ($blob, $maxsize=false, $hastrans=true)
 
 BlobEncode ($blob)
 
 UpdateBlob ($table, $column, $val, $where, $blobtype='BLOB')
 
 OffsetDate ($dayFraction, $date=false)
 
 MetaColumns ($table, $normalize=true)
 
 Param ($name, $type='C')
 
 MetaIndexes ($table, $primary=FALSE, $owner=false)
 
 _connect ($str, $user='', $pwd='', $db='', $ctype=0)
 
 _nconnect ($argHostname, $argUsername, $argPassword, $argDatabaseName)
 
 _pconnect ($str, $user='', $pwd='', $db='')
 
 _query ($sql, $inputarr=false)
 
 _errconnect ()
 
 ErrorMsg ()
 
 ErrorNo ()
 
 _close ()
 
 CharMax ()
 
 TextMax ()
 

Public Attributes

 $databaseType = 'postgres8'
 
- Public Attributes inherited from ADODB_postgres7
 $databaseType = 'postgres7'
 
 $hasLimit = true
 
 $ansiOuter = true
 
 $charSet = true
 
 $metaColumnsSQL
 
 $metaColumnsSQL1
 
- Public Attributes inherited from ADODB_postgres64
 $databaseType = 'postgres64'
 
 $dataProvider = 'postgres'
 
 $hasInsertID = true
 
 $_resultid = false
 
 $concat_operator ='||'
 
 $metaDatabasesSQL = "select datname from pg_database where datname not in ('template0','template1') order by 1"
 
 $metaTablesSQL
 
 $isoDates = true
 
 $sysDate = "CURRENT_DATE"
 
 $sysTimeStamp = "CURRENT_TIMESTAMP"
 
 $blobEncodeType = 'C'
 
 $metaColumnsSQL
 
 $metaColumnsSQL1
 
 $metaKeySQL
 
 $hasAffectedRows = true
 
 $hasLimit = false
 
 $true = 'TRUE'
 
 $false = 'FALSE'
 
 $fmtDate = "'Y-m-d'"
 
 $fmtTimeStamp = "'Y-m-d H:i:s'"
 
 $hasMoveFirst = true
 
 $hasGenID = true
 
 $_genIDSQL = "SELECT NEXTVAL('%s')"
 
 $_genSeqSQL = "CREATE SEQUENCE %s START %s"
 
 $_dropSeqSQL = "DROP SEQUENCE %s"
 
 $metaDefaultsSQL = "SELECT d.adnum as num, d.adsrc as def from pg_attrdef d, pg_class c where d.adrelid=c.oid and c.relname='%s' order by d.adnum"
 
 $random = 'random()'
 
 $autoRollback = true
 random function More...
 
 $uniqueIisR = true
 
 $_bindInputArray = false
 
 $disableBlobs = false
 
 $_pnum = 0
 

Additional Inherited Members

- Protected Member Functions inherited from ADODB_postgres7
 _generateMetaColumnsSQL ($table, $schema)
 
- Protected Member Functions inherited from ADODB_postgres64
 _generateMetaColumnsSQL ($table, $schema)
 

Detailed Description

Definition at line 19 of file adodb-postgres8.inc.php.

Member Function Documentation

◆ _insertid()

ADODB_postgres8::_insertid (   $table,
  $column 
)

Retrieve last inserted ID Don't use OIDs, since as per php manual they won't be there in Postgres 8.1 (and they're not what the application wants back, anyway).

Parameters
string$table
string$column
Returns
int last inserted ID for given table/column, or the most recently returned one if $table or $column are empty

Definition at line 34 of file adodb-postgres8.inc.php.

Member Data Documentation

◆ $databaseType

ADODB_postgres8::$databaseType = 'postgres8'

Definition at line 21 of file adodb-postgres8.inc.php.