Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

Data Dictionary for Microsoft SQL Server native (mssqlnative) FileDescription

Copyright: 2000-2013 John Lim
Copyright: 2014 Damien Regad, Mark Newnham and the ADOdb community
License: BSD-3-Clause
License: LGPL-2.1-or-later
File Size: 329 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ADODB2_mssqlnative:: (9 methods):
  MetaType()
  ActualType()
  AddColumnSQL()
  defaultConstraintName()
  AlterColumnSQL()
  DropColumnSQL()
  _CreateSuffix()
  _IndexSQL()
  _GetSize()


Class: ADODB2_mssqlnative  - X-Ref

MetaType($t,$len=-1,$fieldobj=false)   X-Ref
No description

ActualType($meta)   X-Ref
No description

AddColumnSQL($tabname, $flds)   X-Ref
No description

defaultConstraintName($tabname, $colname)   X-Ref
Get a column's default constraint.

param: string $tabname
param: string $colname
return: string|null The Constraint's name, or null if there is none.

AlterColumnSQL($tabname, $flds, $tableflds='',$tableoptions='')   X-Ref
No description

DropColumnSQL($tabname, $flds, $tableflds='',$tableoptions='')   X-Ref
Drop a column, syntax is ALTER TABLE table DROP COLUMN column,column

param: string   $tabname      Table Name
param: string[] $flds         One, or an array of Fields To Drop
param: string   $tableflds    Throwaway value to make the function match the parent
param: string   $tableoptions Throway value to make the function match the parent
return: string[]  The SQL necessary to drop the column

_CreateSuffix($fname,&$ftype,$fnotnull,$fdefault,$fautoinc,$fconstraint,$funsigned)   X-Ref
No description

_IndexSQL($idxname, $tabname, $flds, $idxoptions)   X-Ref
No description

_GetSize($ftype, $ty, $fsize, $fprec, $options=false)   X-Ref
No description