Documentation TYPO3 par Ameos |
Public Member Functions | |
ADODB_sybase () | |
_insertid () | |
_affectedrows () | |
BeginTrans () | |
CommitTrans ($ok=true) | |
RollbackTrans () | |
RowLock ($tables, $where, $flds='top 1 null as ignore') | |
SelectDB ($dbName) | |
ErrorMsg () | |
_connect ($argHostname, $argUsername, $argPassword, $argDatabasename) | |
_pconnect ($argHostname, $argUsername, $argPassword, $argDatabasename) | |
_query ($sql, $inputarr) | |
& | SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0) |
_close () | |
UnixDate ($v) | |
UnixTimeStamp ($v) | |
SQLDate ($fmt, $col=false) | |
MetaPrimaryKeys ($table) | |
Public Attributes | |
$databaseType = "sybase" | |
$dataProvider = 'sybase' | |
$replaceQuote = "''" | |
string that represents FALSE for a database | |
$fmtDate = "'Y-m-d'" | |
uppercase function | |
$fmtTimeStamp = "'Y-m-d H:i:s'" | |
used by DBDate() as the default date format used by the database | |
$hasInsertID = true | |
$hasAffectedRows = true | |
supports autoincrement ID? | |
$metaTablesSQL = "select name from sysobjects where type='U' or type='V'" | |
$metaColumnsSQL = "SELECT c.column_name, c.column_type, c.width FROM syscolumn c, systable t WHERE t.table_name='%s' AND c.table_id=t.table_id AND t.table_type='BASE'" | |
$concat_operator = '+' | |
maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro | |
$arrayClass = 'ADORecordSet_array_sybase' | |
name of function that returns the current timestamp | |
$sysDate = 'GetDate()' | |
cache for 1 hour | |
$leftOuter = '*=' | |
indicates that all fields in order by must be unique | |
$rightOuter = '=*' | |
operator to use for left outer join in WHERE clause |
Definition at line 21 of file adodb-sybase.inc.php.
|
Begin a Transaction. Must be followed by CommitTrans() or RollbackTrans().
Reimplemented from ADOConnection. Definition at line 59 of file adodb-sybase.inc.php. References ADOConnection::Execute(). Referenced by RowLock(). |
|
If database does not support transactions, always return true as data always commited
Reimplemented from ADOConnection. Definition at line 69 of file adodb-sybase.inc.php. References ADOConnection::Execute(), and RollbackTrans(). |
|
Reimplemented from ADOConnection. Reimplemented in ADODB_sybase_ase. Definition at line 111 of file adodb-sybase.inc.php. |
|
If database does not support transactions, rollbacks always fail, so return false
Reimplemented from ADOConnection. Definition at line 80 of file adodb-sybase.inc.php. References ADOConnection::Execute(). Referenced by CommitTrans(). |
|
Choose a database to connect to. Many databases do not support this.
Reimplemented from ADOConnection. Definition at line 97 of file adodb-sybase.inc.php. Referenced by _connect(), and _pconnect(). |
|
Will select, getting rows from $offset (1-based), for $nrows. This simulates the MySQL "select * from table limit $offset,$nrows" , and the PostgreSQL "select * from table limit $nrows offset $offset". Note that MySQL and PostgreSQL parameter ordering is the opposite of the other. eg. SelectLimit('select * from table',3); will return rows 1 to 3 (1-based) SelectLimit('select * from table',3,2); will return rows 3 to 5 (1-based) Uses SELECT TOP for Microsoft databases (when $this->hasTop is set) BUG: Currently SelectLimit fails with $sql with LIMIT or TOP clause already set
Reimplemented from ADOConnection. Definition at line 154 of file adodb-sybase.inc.php. References ADOConnection::Execute(), and ADOConnection::SelectLimit(). |
|
Also in ADORecordSet.
Reimplemented from ADOConnection. Definition at line 180 of file adodb-sybase.inc.php. References ADORecordSet_array_sybase::UnixDate(). |
|
Also in ADORecordSet.
Reimplemented from ADOConnection. Definition at line 185 of file adodb-sybase.inc.php. References ADORecordSet_array_sybase::UnixTimeStamp(). |