|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| ADODB_postgres64 () | |
| 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) | |
| 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 () | |
Data Fields | |
| $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 | |
| $uniqueIisR = true | |
| $_bindInputArray = false | |
| $disableBlobs = false | |
| $_pnum = 0 | |
Definition at line 57 of file adodb-postgres64.inc.php.
| _affectedrows | ( | ) |
Definition at line 168 of file adodb-postgres64.inc.php.
| _close | ( | ) |
Definition at line 842 of file adodb-postgres64.inc.php.
| _connect | ( | $ | str, |
| $ | user = '', |
||
| $ | pwd = '', |
||
| $ | db = '', |
||
| $ | ctype = 0 |
||
| ) |
| _errconnect | ( | ) |
Definition at line 806 of file adodb-postgres64.inc.php.
| _insertid | ( | $ | table, |
| $ | column | ||
| ) |
Definition at line 158 of file adodb-postgres64.inc.php.
| _nconnect | ( | $ | argHostname, |
| $ | argUsername, | ||
| $ | argPassword, | ||
| $ | argDatabaseName | ||
| ) |
Definition at line 710 of file adodb-postgres64.inc.php.
| _pconnect | ( | $ | str, |
| $ | user = '', |
||
| $ | pwd = '', |
||
| $ | db = '' |
||
| ) |
Definition at line 720 of file adodb-postgres64.inc.php.
| _query | ( | $ | sql, |
| $ | inputarr = false |
||
| ) |
Reimplemented in ADODB_postgres7.
Definition at line 727 of file adodb-postgres64.inc.php.
| ADODB_postgres64 | ( | ) |
Definition at line 122 of file adodb-postgres64.inc.php.

| BeginTrans | ( | ) |
Definition at line 176 of file adodb-postgres64.inc.php.

| BlobDecode | ( | $ | blob, |
| $ | maxsize = false, |
||
| $ | hastrans = true |
||
| ) |
| BlobDelete | ( | $ | blob | ) |
Definition at line 378 of file adodb-postgres64.inc.php.
| BlobEncode | ( | $ | blob | ) |
Definition at line 431 of file adodb-postgres64.inc.php.
| CharMax | ( | ) |
Definition at line 858 of file adodb-postgres64.inc.php.
| CommitTrans | ( | $ | ok = true | ) |
| ErrorMsg | ( | ) |
Definition at line 813 of file adodb-postgres64.inc.php.
| ErrorNo | ( | ) |
Definition at line 832 of file adodb-postgres64.inc.php.
| GuessOID | ( | $ | oid | ) |
Definition at line 389 of file adodb-postgres64.inc.php.

| IfNull | ( | $ | field, |
| $ | ifNull | ||
| ) |
Definition at line 137 of file adodb-postgres64.inc.php.
| MetaColumns | ( | $ | table, |
| $ | normalize = true |
||
| ) |
Reimplemented in ADODB_netezza.
Definition at line 472 of file adodb-postgres64.inc.php.
| MetaIndexes | ( | $ | table, |
| $ | primary = FALSE, |
||
| $ | owner = false |
||
| ) |
Definition at line 592 of file adodb-postgres64.inc.php.
| MetaTables | ( | $ | ttype = false, |
| $ | showSchema = false, |
||
| $ | mask = false |
||
| ) |
| OffsetDate | ( | $ | dayFraction, |
| $ | date = false |
||
| ) |
Definition at line 454 of file adodb-postgres64.inc.php.
| Param | ( | $ | name | ) |
Definition at line 586 of file adodb-postgres64.inc.php.
| pg_insert_id | ( | $ | tablename, |
| $ | fieldname | ||
| ) |
Definition at line 143 of file adodb-postgres64.inc.php.
| qstr | ( | $ | s, |
| $ | magic_quotes = false |
||
| ) |
Definition at line 238 of file adodb-postgres64.inc.php.

| RollbackTrans | ( | ) |
Definition at line 200 of file adodb-postgres64.inc.php.

| RowLock | ( | $ | tables, |
| $ | where, | ||
| $ | col = '1 as adodbignore' |
||
| ) |
| ServerInfo | ( | ) |
Definition at line 127 of file adodb-postgres64.inc.php.

| SQLDate | ( | $ | fmt, |
| $ | col = false |
||
| ) |
Definition at line 263 of file adodb-postgres64.inc.php.
| TextMax | ( | ) |
Definition at line 866 of file adodb-postgres64.inc.php.
| UpdateBlob | ( | $ | table, |
| $ | column, | ||
| $ | val, | ||
| $ | where, | ||
| $ | blobtype = 'BLOB' |
||
| ) |
Definition at line 445 of file adodb-postgres64.inc.php.

| UpdateBlobFile | ( | $ | table, |
| $ | column, | ||
| $ | path, | ||
| $ | where, | ||
| $ | blobtype = 'BLOB' |
||
| ) |
| $_bindInputArray = false |
Definition at line 109 of file adodb-postgres64.inc.php.
| $_dropSeqSQL = "DROP SEQUENCE %s" |
Definition at line 102 of file adodb-postgres64.inc.php.
| $_genIDSQL = "SELECT NEXTVAL('%s')" |
Definition at line 100 of file adodb-postgres64.inc.php.
Definition at line 101 of file adodb-postgres64.inc.php.
| $_pnum = 0 |
Definition at line 112 of file adodb-postgres64.inc.php.
| $_resultid = false |
Reimplemented in ADODB_netezza.
Definition at line 61 of file adodb-postgres64.inc.php.
| $autoRollback = true |
random function
Reimplemented in ADODB_netezza.
Definition at line 105 of file adodb-postgres64.inc.php.
| $blobEncodeType = 'C' |
Reimplemented in ADODB_netezza.
Definition at line 73 of file adodb-postgres64.inc.php.
| $concat_operator = '||' |
Reimplemented in ADODB_netezza.
Definition at line 62 of file adodb-postgres64.inc.php.
| $databaseType = 'postgres64' |
Reimplemented in ADODB_netezza, and ADODB_postgres7.
Definition at line 58 of file adodb-postgres64.inc.php.
| $dataProvider = 'postgres' |
Reimplemented in ADODB_netezza.
Definition at line 59 of file adodb-postgres64.inc.php.
| $disableBlobs = false |
Definition at line 110 of file adodb-postgres64.inc.php.
| $false = 'FALSE' |
Reimplemented in ADODB_netezza.
Definition at line 95 of file adodb-postgres64.inc.php.
| $fmtDate = "'Y-m-d'" |
Reimplemented in ADODB_netezza.
Definition at line 96 of file adodb-postgres64.inc.php.
| $fmtTimeStamp = "'Y-m-d H:i:s'" |
Reimplemented in ADODB_netezza.
Definition at line 97 of file adodb-postgres64.inc.php.
| $hasAffectedRows = true |
Reimplemented in ADODB_netezza.
Definition at line 91 of file adodb-postgres64.inc.php.
| $hasGenID = true |
Definition at line 99 of file adodb-postgres64.inc.php.
| $hasInsertID = true |
Reimplemented in ADODB_netezza.
Definition at line 60 of file adodb-postgres64.inc.php.
| $hasLimit = false |
Reimplemented in ADODB_netezza, and ADODB_postgres7.
Definition at line 92 of file adodb-postgres64.inc.php.
| $hasMoveFirst = true |
Definition at line 98 of file adodb-postgres64.inc.php.
| $isoDates = true |
Reimplemented in ADODB_netezza.
Definition at line 70 of file adodb-postgres64.inc.php.
| $metaColumnsSQL |
"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"
Reimplemented in ADODB_netezza.
Definition at line 74 of file adodb-postgres64.inc.php.
| $metaColumnsSQL1 |
"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"
Reimplemented in ADODB_netezza.
Definition at line 80 of file adodb-postgres64.inc.php.
| $metaDatabasesSQL = "select datname from pg_database where datname not in ('template0','template1') order by 1" |
Reimplemented in ADODB_netezza.
Definition at line 63 of file adodb-postgres64.inc.php.
| $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 103 of file adodb-postgres64.inc.php.
| $metaKeySQL |
"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'"
Reimplemented in ADODB_netezza.
Definition at line 88 of file adodb-postgres64.inc.php.
| $metaTablesSQL |
"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\_%'"
Reimplemented in ADODB_netezza.
Definition at line 64 of file adodb-postgres64.inc.php.
| $random = 'random()' |
Reimplemented in ADODB_netezza.
Definition at line 104 of file adodb-postgres64.inc.php.
| $sysDate = "CURRENT_DATE" |
Reimplemented in ADODB_netezza.
Definition at line 71 of file adodb-postgres64.inc.php.
| $sysTimeStamp = "CURRENT_TIMESTAMP" |
Reimplemented in ADODB_netezza.
Definition at line 72 of file adodb-postgres64.inc.php.
| $true = 'TRUE' |
Reimplemented in ADODB_netezza.
Definition at line 94 of file adodb-postgres64.inc.php.
| $uniqueIisR = true |
Definition at line 108 of file adodb-postgres64.inc.php.