Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

(no description)

File Size: 434 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

ADODB_odbc_mssql:: (16 methods):
  ServerInfo()
  IfNull()
  _insertid()
  MetaForeignKeys()
  MetaTables()
  MetaColumns()
  MetaIndexes()
  _query()
  SetTransactionMode()
  MetaPrimaryKeys()
  SelectLimit()
  SQLDate()
  substr()
  charMax()
  textMax()
  Concat()

ADORecordSet_odbc_mssql:: (0 methods):


Class: ADODB_odbc_mssql  - X-Ref

ServerInfo()   X-Ref
No description

IfNull( $field, $ifNull )   X-Ref
No description

_insertid()   X-Ref
No description

MetaForeignKeys($table, $owner=false, $upper=false)   X-Ref
No description

MetaTables($ttype=false,$showSchema=false,$mask=false)   X-Ref
No description

MetaColumns($table, $normalize=true)   X-Ref
No description

MetaIndexes($table,$primary=false, $owner=false)   X-Ref
No description

_query($sql,$inputarr=false)   X-Ref
No description

SetTransactionMode( $transaction_mode )   X-Ref
No description

MetaPrimaryKeys($table, $owner = false)   X-Ref
No description

SelectLimit($sql,$nrows=-1,$offset=-1, $inputarr=false,$secs2cache=0)   X-Ref
No description

SQLDate($fmt, $col=false)   X-Ref
No description

substr($fld,$start,$length=0)   X-Ref
Returns a substring of a varchar type field

The SQL server version varies because the length is mandatory, so
we append a reasonable string length

param: string    $fld    The field to sub-string
param: int        $start    The start point
param: int        $length    An optional length
return: The SQL text

charMax()   X-Ref
Returns the maximum size of a MetaType C field. Because of the
database design, SQL Server places no limits on the size of data inserted
Although the actual limit is 2^31-1 bytes.

return: int

textMax()   X-Ref
Returns the maximum size of a MetaType X field. Because of the
database design, SQL Server places no limits on the size of data inserted
Although the actual limit is 2^31-1 bytes.

return: int

Concat()   X-Ref
No description