

Fonctions membres publiques | |
| _init ($parentDriver) | |
| ServerInfo () | |
| SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0) | |
| SetTransactionMode ($transaction_mode) | |
| MetaTables () | |
| MetaColumns () | |
Attributs publics | |
| $hasTop = 'top' | |
| supports affected rows for update/delete? | |
| $sysDate = 'convert(datetime,convert(char,GetDate(),102),102)' | |
| Use 'true' to store the item compressed (uses zlib). | |
| $sysTimeStamp = 'GetDate()' | |
| name of function that returns the current date | |
| ADODB_pdo_mssql::_init | ( | $ | parentDriver | ) |
| ADODB_pdo_mssql::ServerInfo | ( | ) |
Get server version info...
Réimplémentée à partir de ADODB_pdo.
| ADODB_pdo_mssql::SelectLimit | ( | $ | sql, | |
| $ | nrows = -1, |
|||
| $ | offset = -1, |
|||
| $ | inputarr = false, |
|||
| $ | secs2cache = 0 | |||
| ) |
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
| sql | ||
| [offset] | is the row to start calculations from (1-based) | |
| [nrows] | is the number of rows to get | |
| [inputarr] | array of bind variables | |
| [secs2cache] | is a private parameter only used by jlim |
Réimplémentée à partir de ADODB_pdo.
| ADODB_pdo_mssql::SetTransactionMode | ( | $ | transaction_mode | ) |
Réimplémentée à partir de ADOConnection.
| ADODB_pdo_mssql::MetaTables | ( | ) |
| ADODB_pdo_mssql::MetaColumns | ( | ) |
| ADODB_pdo_mssql::$hasTop = 'top' |
| ADODB_pdo_mssql::$sysDate = 'convert(datetime,convert(char,GetDate(),102),102)' |
| ADODB_pdo_mssql::$sysTimeStamp = 'GetDate()' |
1.5.3