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

Public Member Functions

 __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 = '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
 

Protected Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ADODB_postgres7::__construct ( )

Definition at line 98 of file adodb-postgres7.inc.php.

Member Function Documentation

◆ _generateMetaColumnsSQL()

ADODB_postgres7::_generateMetaColumnsSQL (   $table,
  $schema 
)
protected

Generate the SQL to retrieve MetaColumns data

Parameters
string$tableTable name
string$schemaSchema name (can be blank)
Returns
string SQL statement to execute

Definition at line 139 of file adodb-postgres7.inc.php.

◆ _old_MetaForeignKeys()

ADODB_postgres7::_old_MetaForeignKeys (   $table,
  $owner = false,
  $upper = false 
)

Definition at line 201 of file adodb-postgres7.inc.php.

References $sql.

◆ _query()

ADODB_postgres7::_query (   $sql,
  $inputarr = false 
)

Definition at line 234 of file adodb-postgres7.inc.php.

◆ GetCharSet()

ADODB_postgres7::GetCharSet ( )

Definition at line 277 of file adodb-postgres7.inc.php.

References $charSet.

Referenced by SetCharSet().

◆ MetaForeignKeys()

ADODB_postgres7::MetaForeignKeys (   $table,
  $owner = false,
  $upper = false 
)
Returns
assoc array where keys are tables, and values are foreign keys

Definition at line 152 of file adodb-postgres7.inc.php.

References $a, $rs, and $sql.

◆ SelectLimit()

ADODB_postgres7::SelectLimit (   $sql,
  $nrows = -1,
  $offset = -1,
  $inputarr = false,
  $secs2cache = 0 
)

Definition at line 110 of file adodb-postgres7.inc.php.

References $rs, and $sql.

◆ SetCharSet()

ADODB_postgres7::SetCharSet (   $charset_name)

Definition at line 289 of file adodb-postgres7.inc.php.

References GetCharSet().

Member Data Documentation

◆ $ansiOuter

ADODB_postgres7::$ansiOuter = true

Definition at line 24 of file adodb-postgres7.inc.php.

◆ $charSet

ADODB_postgres7::$charSet = true

Definition at line 25 of file adodb-postgres7.inc.php.

Referenced by GetCharSet().

◆ $databaseType

ADODB_postgres7::$databaseType = 'postgres7'

Definition at line 22 of file adodb-postgres7.inc.php.

◆ $hasLimit

ADODB_postgres7::$hasLimit = true

Definition at line 23 of file adodb-postgres7.inc.php.

◆ $metaColumnsSQL

ADODB_postgres7::$metaColumnsSQL

Definition at line 28 of file adodb-postgres7.inc.php.

◆ $metaColumnsSQL1

ADODB_postgres7::$metaColumnsSQL1

Definition at line 62 of file adodb-postgres7.inc.php.