Documentation TYPO3 par Ameos

ADODB_odbc_mssql Class Reference

Inheritance diagram for ADODB_odbc_mssql:
Collaboration diagram for ADODB_odbc_mssql:
List of all members.

Public Member Functions

 ADODB_odbc_mssql ()
 ServerInfo ()
 IfNull ($field, $ifNull)
 _insertid ()
 MetaForeignKeys ($table, $owner=false, $upper=false)
MetaTables ($ttype=false, $showSchema=false, $mask=false)
MetaColumns ($table)
MetaIndexes ($table, $primary=false)
 _query ($sql, $inputarr)
 SetTransactionMode ($transaction_mode)
MetaPrimaryKeys ($table)
SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)
 SQLDate ($fmt, $col=false)

Public Attributes

 $databaseType = 'odbc_mssql'
 $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
 $_bindInputArray = true
 A boolean variable to state whether its a persistent connection or normal connection. */.
 $metaTablesSQL = "select name,case when type='U' then 'T' else 'V' end from sysobjects where (type='U' or type='V') and (name not in ('sysallocations','syscolumns','syscomments','sysdepends','sysfilegroups','sysfiles','sysfiles1','sysforeignkeys','sysfulltextcatalogs','sysindexes','sysindexkeys','sysmembers','sysobjects','syspermissions','sysprotects','sysreferences','systypes','sysusers','sysalternates','sysconstraints','syssegments','REFERENTIAL_CONSTRAINTS','CHECK_CONSTRAINTS','CONSTRAINT_TABLE_USAGE','CONSTRAINT_COLUMN_USAGE','VIEWS','VIEW_TABLE_USAGE','VIEW_COLUMN_USAGE','SCHEMATA','TABLES','TABLE_CONSTRAINTS','TABLE_PRIVILEGES','COLUMNS','COLUMN_DOMAIN_USAGE','COLUMN_PRIVILEGES','DOMAINS','DOMAIN_CONSTRAINTS','KEY_COLUMN_USAGE'))"
 $metaColumnsSQL = "select,,c.length from syscolumns c join systypes t on t.xusertype=c.xusertype join sysobjects o on where'%s'"
 $hasTop = 'top'
 supports affected rows for update/delete?
 $sysDate = 'GetDate()'
 Use 'true' to store the item compressed (uses zlib).
 $sysTimeStamp = 'GetDate()'
 name of function that returns the current date
 $leftOuter = '*='
 indicates that all fields in order by must be unique
 $rightOuter = '=*'
 operator to use for left outer join in WHERE clause
 $substr = 'substring'
 default concat operator -- change to || for Oracle/Interbase
 $length = 'len'
 substring operator
 $ansiOuter = true
 operator to use for right outer join in WHERE clause
 $identitySQL = 'select @@IDENTITY'
 $hasInsertID = true

Detailed Description

Definition at line 23 of file

Member Function Documentation

ADODB_odbc_mssql::ServerInfo (  ) 

Get server version info...

An array with 2 elements: $arr['string'] is the description string, and $arr[version] is the version (also a string).

Reimplemented from ADODB_odbc.

Definition at line 50 of file

References ADOConnection::_findvers(), and ADOConnection::GetRow().

ADODB_odbc_mssql::MetaForeignKeys ( table,
owner = false,
upper = false 

assoc array where keys are tables, and values are foreign keys

Reimplemented from ADOConnection.

Definition at line 79 of file

References ADOConnection::GetArray(), and ADOConnection::qstr().

& ADODB_odbc_mssql::MetaTables ( ttype = false,
showSchema = false,
mask = false 

ttype can either be 'VIEW' or 'TABLE' or false. If false, both views and tables are returned. "VIEW" returns only views "TABLE" returns only tables
showSchema returns the schema/user with the table name, eg. USER.TABLE
mask is the input mask - only supported by oci8 and postgresql
array of tables for current database.

Reimplemented from ADOConnection.

Definition at line 118 of file

References ADOConnection::MetaTables(), and ADOConnection::qstr().

& ADODB_odbc_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

[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
the recordset ($rs->databaseType == 'array')

Reimplemented from ADOConnection.

Definition at line 223 of file

References ADOConnection::Execute(), and ADOConnection::SelectLimit().

The documentation for this class was generated from the following file:

Généré par L'expert TYPO3 avec  doxygen 1.4.6