"TYPO3 4.0.1: ADODB_db2 Class Reference", "datetime" => "Sat Dec 2 19:23:08 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>


Public Member Functions | |
| _insertid () | |
| ADODB_db2 () | |
| _connect ($argDSN, $argUsername, $argPassword, $argDatabasename) | |
| _pconnect ($argDSN, $argUsername, $argPassword, $argDatabasename) | |
| SQLDate ($fmt, $col=false) | |
| ServerInfo () | |
| CreateSequence ($seqname='adodbseq', $start=1) | |
| DropSequence ($seqname) | |
| GenID ($seq='adodbseq', $start=1) | |
| ErrorMsg () | |
| ErrorNo () | |
| BeginTrans () | |
| CommitTrans ($ok=true) | |
| RollbackTrans () | |
| MetaPrimaryKeys ($table) | |
| & | MetaTables ($ttype=false) |
| DB2Types ($t) | |
| & | MetaColumns ($table) |
| Prepare ($sql) | |
| _query ($sql, $inputarr=false) | |
| UpdateBlob ($table, $column, $val, $where, $blobtype='BLOB') | |
| _close () | |
| _affectedrows () | |
Public Attributes | |
| $databaseType = "db2" | |
| $fmtDate = "'Y-m-d'" | |
| uppercase function | |
| $concat_operator = '||' | |
| maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro | |
| $sysTime = 'CURRENT TIME' | |
| $sysDate = 'CURRENT DATE' | |
| cache for 1 hour | |
| $sysTimeStamp = 'CURRENT TIMESTAMP' | |
| name of function that returns the current date | |
| $fmtTimeStamp = "'Y-m-d-H.i.s'" | |
| used by DBDate() as the default date format used by the database | |
| $replaceQuote = "''" | |
| string that represents FALSE for a database | |
| $dataProvider = "db2" | |
| $hasAffectedRows = true | |
| supports autoincrement ID? | |
| $binmode = DB2_BINARY | |
| $useFetchArray = false | |
| $_bindInputArray = false | |
| A boolean variable to state whether its a persistent connection or normal connection. */. | |
| $_genSeqSQL = "create table %s (id integer)" | |
| $_autocommit = true | |
| $_haserrorfunctions = true | |
| $_lastAffectedRows = 0 | |
| $uCaseTables = true | |
| $hasInsertID = true | |
| $_dropSeqSQL = 'drop table %s' | |
Definition at line 25 of file adodb-db2.inc.php.
|
|
Begin a Transaction. Must be followed by CommitTrans() or RollbackTrans().
Reimplemented from ADOConnection. Definition at line 286 of file adodb-db2.inc.php. |
|
|
If database does not support transactions, always return true as data always commited
Reimplemented from ADOConnection. Definition at line 295 of file adodb-db2.inc.php. |
|
|
Reimplemented from ADOConnection. Definition at line 256 of file adodb-db2.inc.php. References ADOConnection::ErrorMsg(). |
|
|
Reimplemented from ADOConnection. Definition at line 265 of file adodb-db2.inc.php. References ADOConnection::ErrorNo(). |
|
||||||||||||
|
Generates a sequence id and stores it in $this->genID; GenID is only available if $this->hasGenID = true;
Reimplemented from ADOConnection. Definition at line 227 of file adodb-db2.inc.php. |
|
|
Should prepare the sql statement and return the stmt resource. For databases that do not support this, we return the $sql. To ensure compatibility with databases that do not support prepare: $stmt = $db->Prepare("insert into table (id, name) values (?,?)"); $db->Execute($stmt,array(1,'Jill')) or die('insert failed'); $db->Execute($stmt,array(2,'Joe')) or die('insert failed');
Reimplemented from ADOConnection. Definition at line 519 of file adodb-db2.inc.php. |
|
|
If database does not support transactions, rollbacks always fail, so return false
Reimplemented from ADOConnection. Definition at line 306 of file adodb-db2.inc.php. |
|
|
Get server version info...
Reimplemented from ADOConnection. Definition at line 175 of file adodb-db2.inc.php. References ADOConnection::ServerInfo(). |
|
||||||||||||||||||||||||
|
Update a blob column, given a where clause. There are more sophisticated blob handling functions that we could have implemented, but all require a very complex API. Instead we have chosen something that is extremely simple to understand and use. Note: $blobtype supports 'BLOB' and 'CLOB', default is BLOB of course. Usage to update a $blobvalue which has a primary key blob_id=1 into a field blobtable.blobcolumn: UpdateBlob('blobtable', 'blobcolumn', $blobvalue, 'blob_id=1'); Insert example: $conn->Execute('INSERT INTO blobtable (id, blobcol) VALUES (1, null)'); $conn->UpdateBlob('blobtable','blobcol',$blob,'id=1'); Reimplemented from ADOConnection. Definition at line 602 of file adodb-db2.inc.php. |