TYPO3 CMS  TYPO3_7-6
ADODB_pdo_pgsql Class Reference
Inheritance diagram for ADODB_pdo_pgsql:
ADODB_pdo

Public Member Functions

 _init ($parentDriver)
 
 ServerInfo ()
 
 SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)
 
 MetaTables ($ttype=false, $showSchema=false, $mask=false)
 
 MetaColumns ($table, $normalize=true)
 
- Public Member Functions inherited from ADODB_pdo
 __construct ()
 
 _UpdatePDO ()
 
 Time ()
 
 _connect ($argDSN, $argUsername, $argPassword, $argDatabasename, $persist=false)
 
 Concat ()
 
 _pconnect ($argDSN, $argUsername, $argPassword, $argDatabasename)
 
 SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)
 
 ServerInfo ()
 
 MetaTables ($ttype=false, $showSchema=false, $mask=false)
 
 MetaColumns ($table, $normalize=true)
 
 InParameter (&$stmt, &$var, $name, $maxLen=4000, $type=false)
 
 OffsetDate ($dayFraction, $date=false)
 
 ErrorMsg ()
 
 ErrorNo ()
 
 SetTransactionMode ($transaction_mode)
 
 BeginTrans ()
 
 CommitTrans ($ok=true)
 
 RollbackTrans ()
 
 Prepare ($sql)
 
 PrepareStmt ($sql)
 
 CreateSequence ($seqname='adodbseq', $startID=1)
 
 DropSequence ($seqname='adodbseq')
 
 GenID ($seqname='adodbseq', $startID=1)
 
 _query ($sql, $inputarr=false)
 
 _close ()
 
 _affectedrows ()
 
 _insertid ()
 

Public Attributes

 $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 = 't'
 
 $false = 'f'
 
 $fmtDate = "'Y-m-d'"
 
 $fmtTimeStamp = "'Y-m-d G: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()'
 
 $concat_operator ='||'
 random function More...
 
- Public Attributes inherited from ADODB_pdo
 $databaseType = "pdo"
 
 $dataProvider = "pdo"
 
 $fmtDate = "'Y-m-d'"
 
 $fmtTimeStamp = "'Y-m-d, h:i:sA'"
 
 $replaceQuote = "''"
 
 $hasAffectedRows = true
 
 $_bindInputArray = true
 
 $_genIDSQL
 
 $_genSeqSQL = "create table %s (id integer)"
 
 $_dropSeqSQL
 
 $_autocommit = true
 
 $_haserrorfunctions = true
 
 $_lastAffectedRows = 0
 
 $_errormsg = false
 
 $_errorno = false
 
 $dsnType = ''
 
 $stmt = false
 
 $_driver
 

Detailed Description

Definition at line 14 of file adodb-pdo_pgsql.inc.php.

Member Function Documentation

◆ _init()

ADODB_pdo_pgsql::_init (   $parentDriver)

Definition at line 59 of file adodb-pdo_pgsql.inc.php.

◆ MetaColumns()

ADODB_pdo_pgsql::MetaColumns (   $table,
  $normalize = true 
)

Definition at line 117 of file adodb-pdo_pgsql.inc.php.

References $false, $rs, and $sql.

◆ MetaTables()

ADODB_pdo_pgsql::MetaTables (   $ttype = false,
  $showSchema = false,
  $mask = false 
)

Definition at line 86 of file adodb-pdo_pgsql.inc.php.

References $metaTablesSQL, and ServerInfo().

◆ SelectLimit()

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

Definition at line 74 of file adodb-pdo_pgsql.inc.php.

References $rs, and $sql.

◆ ServerInfo()

ADODB_pdo_pgsql::ServerInfo ( )

Definition at line 67 of file adodb-pdo_pgsql.inc.php.

Referenced by MetaTables().

Member Data Documentation

◆ $_dropSeqSQL

ADODB_pdo_pgsql::$_dropSeqSQL = "DROP SEQUENCE %s"

Definition at line 54 of file adodb-pdo_pgsql.inc.php.

◆ $_genIDSQL

ADODB_pdo_pgsql::$_genIDSQL = "SELECT NEXTVAL('%s')"

Definition at line 52 of file adodb-pdo_pgsql.inc.php.

◆ $_genSeqSQL

ADODB_pdo_pgsql::$_genSeqSQL = "CREATE SEQUENCE %s START %s"

Definition at line 53 of file adodb-pdo_pgsql.inc.php.

◆ $blobEncodeType

ADODB_pdo_pgsql::$blobEncodeType = 'C'

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

◆ $concat_operator

ADODB_pdo_pgsql::$concat_operator ='||'

random function

Definition at line 57 of file adodb-pdo_pgsql.inc.php.

◆ $false

ADODB_pdo_pgsql::$false = 'f'

Definition at line 47 of file adodb-pdo_pgsql.inc.php.

Referenced by MetaColumns().

◆ $fmtDate

ADODB_pdo_pgsql::$fmtDate = "'Y-m-d'"

Definition at line 48 of file adodb-pdo_pgsql.inc.php.

◆ $fmtTimeStamp

ADODB_pdo_pgsql::$fmtTimeStamp = "'Y-m-d G:i:s'"

Definition at line 49 of file adodb-pdo_pgsql.inc.php.

◆ $hasAffectedRows

ADODB_pdo_pgsql::$hasAffectedRows = true

Definition at line 43 of file adodb-pdo_pgsql.inc.php.

◆ $hasGenID

ADODB_pdo_pgsql::$hasGenID = true

Definition at line 51 of file adodb-pdo_pgsql.inc.php.

◆ $hasLimit

ADODB_pdo_pgsql::$hasLimit = false

Definition at line 44 of file adodb-pdo_pgsql.inc.php.

◆ $hasMoveFirst

ADODB_pdo_pgsql::$hasMoveFirst = true

Definition at line 50 of file adodb-pdo_pgsql.inc.php.

◆ $isoDates

ADODB_pdo_pgsql::$isoDates = true

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

◆ $metaColumnsSQL

ADODB_pdo_pgsql::$metaColumnsSQL
Initial value:
= "SELECT a.attname,t.typname,a.attlen,a.atttypmod,a.attnotnull,a.atthasdef,a.attnum
FROM pg_class c, pg_attribute a,pg_type t
WHERE relkind in ('r','v') AND (c.relname='%s' or c.relname = lower('%s')) and a.attname not like '....%%'
AND a.attnum > 0 AND a.atttypid = t.oid AND a.attrelid = c.oid ORDER BY a.attnum"

Definition at line 26 of file adodb-pdo_pgsql.inc.php.

◆ $metaColumnsSQL1

ADODB_pdo_pgsql::$metaColumnsSQL1
Initial value:
= "SELECT a.attname, t.typname, a.attlen, a.atttypmod, a.attnotnull, a.atthasdef, a.attnum
FROM pg_class c, pg_attribute a, pg_type t, pg_namespace n
WHERE relkind in ('r','v') AND (c.relname='%s' or c.relname = lower('%s'))
and c.relnamespace=n.oid and n.nspname='%s'
and a.attname not like '....%%' AND a.attnum > 0
AND a.atttypid = t.oid AND a.attrelid = c.oid ORDER BY a.attnum"

Definition at line 32 of file adodb-pdo_pgsql.inc.php.

◆ $metaDatabasesSQL

ADODB_pdo_pgsql::$metaDatabasesSQL = "select datname from pg_database where datname not in ('template0','template1') order by 1"

Definition at line 15 of file adodb-pdo_pgsql.inc.php.

◆ $metaDefaultsSQL

ADODB_pdo_pgsql::$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"

Definition at line 55 of file adodb-pdo_pgsql.inc.php.

◆ $metaKeySQL

ADODB_pdo_pgsql::$metaKeySQL
Initial value:
= "SELECT ic.relname AS index_name, a.attname AS column_name,i.indisunique AS unique_key, i.indisprimary AS primary_key
FROM pg_class bc, pg_class ic, pg_index i, pg_attribute a WHERE bc.oid = i.indrelid AND ic.oid = i.indexrelid AND (i.indkey[0] = a.attnum OR i.indkey[1] = a.attnum OR i.indkey[2] = a.attnum OR i.indkey[3] = a.attnum OR i.indkey[4] = a.attnum OR i.indkey[5] = a.attnum OR i.indkey[6] = a.attnum OR i.indkey[7] = a.attnum) AND a.attrelid = bc.oid AND bc.relname = '%s'"

Definition at line 40 of file adodb-pdo_pgsql.inc.php.

◆ $metaTablesSQL

ADODB_pdo_pgsql::$metaTablesSQL
Initial value:
= "select tablename,'T' from pg_tables where tablename not like 'pg\_%'
and tablename not in ('sql_features', 'sql_implementation_info', 'sql_languages',
'sql_packages', 'sql_sizing', 'sql_sizing_profiles')
union
select viewname,'V' from pg_views where viewname not like 'pg\_%'"

Definition at line 16 of file adodb-pdo_pgsql.inc.php.

Referenced by MetaTables().

◆ $random

ADODB_pdo_pgsql::$random = 'random()'

Definition at line 56 of file adodb-pdo_pgsql.inc.php.

◆ $sysDate

ADODB_pdo_pgsql::$sysDate = "CURRENT_DATE"

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

◆ $sysTimeStamp

ADODB_pdo_pgsql::$sysTimeStamp = "CURRENT_TIMESTAMP"

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

◆ $true

ADODB_pdo_pgsql::$true = 't'

Definition at line 46 of file adodb-pdo_pgsql.inc.php.