Documentation TYPO3 par Ameos |


Public Member Functions | |
| ADODB_odbc () | |
| _connect ($argDSN, $argUsername, $argPassword, $argDatabasename) | |
| _pconnect ($argDSN, $argUsername, $argPassword, $argDatabasename) | |
| 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) |
| ODBCTypes ($t) | |
| & | MetaColumns ($table) |
| Prepare ($sql) | |
| _query ($sql, $inputarr=false) | |
| UpdateBlob ($table, $column, $val, $where, $blobtype='BLOB') | |
| _close () | |
| _affectedrows () | |
Public Attributes | |
| $databaseType = "odbc" | |
| $fmtDate = "'Y-m-d'" | |
| uppercase function | |
| $fmtTimeStamp = "'Y-m-d, h:i:sA'" | |
| used by DBDate() as the default date format used by the database | |
| $replaceQuote = "''" | |
| string that represents FALSE for a database | |
| $dataProvider = "odbc" | |
| $hasAffectedRows = true | |
| supports autoincrement ID? | |
| $binmode = ODBC_BINMODE_RETURN | |
| $useFetchArray = false | |
| $_bindInputArray = false | |
| A boolean variable to state whether its a persistent connection or normal connection. */. | |
| $curmode = SQL_CUR_USE_DRIVER | |
| $_genSeqSQL = "create table %s (id integer)" | |
| $_autocommit = true | |
| $_haserrorfunctions = true | |
| $_has_stupid_odbc_fetch_api_change = true | |
| $_lastAffectedRows = 0 | |
| $uCaseTables = true | |
| $_dropSeqSQL = 'drop table %s' | |
Definition at line 22 of file adodb-odbc.inc.php.
|
|
Begin a Transaction. Must be followed by CommitTrans() or RollbackTrans().
Reimplemented from ADOConnection. Reimplemented in ADODB_access, and ADODB_vfp. Definition at line 203 of file adodb-odbc.inc.php. Referenced by ADODB_DB2::RowLock(). |
|
|
If database does not support transactions, always return true as data always commited
Reimplemented from ADOConnection. Definition at line 212 of file adodb-odbc.inc.php. References RollbackTrans(). |
|
|
Reimplemented from ADOConnection. Definition at line 173 of file adodb-odbc.inc.php. References ADOConnection::ErrorMsg(). |
|
|
Reimplemented from ADOConnection. Definition at line 182 of file adodb-odbc.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 143 of file adodb-odbc.inc.php. References ADOConnection::Execute(), and ADOConnection::GetOne(). |
|
|
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 480 of file adodb-odbc.inc.php. |
|
|
If database does not support transactions, rollbacks always fail, so return false
Reimplemented from ADOConnection. Definition at line 223 of file adodb-odbc.inc.php. Referenced by CommitTrans(). |
|
|
Get server version info...
Reimplemented from ADOConnection. Reimplemented in ADODB_DB2, ADODB_odbc_mssql, and ADODB_SAPDB. Definition at line 91 of file adodb-odbc.inc.php. References ADOConnection::ServerInfo(). Referenced by ADODB_SAPDB::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 577 of file adodb-odbc.inc.php. |
1.4.6