

Public Member Functions | |
| ActualType ($meta) | |
| _CreateSuffix ($fname, &$ftype, $fnotnull, $fdefault, $fautoinc, $fconstraint, $funsigned) | |
| AlterColumnSQL ($tabname, $flds) | |
| DropColumnSQL ($tabname, $flds) | |
| ChangeTableSQL ($tablename, $flds, $tableoptions=false) | |
Public Attributes | |
| $databaseType = 'db2' | |
| $seqField = false | |
Definition at line 15 of file datadict-db2.inc.php.
| ADODB2_db2::_CreateSuffix | ( | $ | fname, | |
| &$ | ftype, | |||
| $ | fnotnull, | |||
| $ | fdefault, | |||
| $ | fautoinc, | |||
| $ | fconstraint, | |||
| $ | funsigned | |||
| ) |
Reimplemented from ADODB_DataDict.
Definition at line 51 of file datadict-db2.inc.php.
| ADODB2_db2::ActualType | ( | $ | meta | ) |
Returns the actual type given a character code.
C: varchar X: CLOB (character large object) or largest varchar size if CLOB is not supported C2: Multibyte varchar X2: Multibyte CLOB
B: BLOB (binary large object)
D: Date T: Date-time L: Integer field suitable for storing booleans (0 or 1) I: Integer F: Floating point number N: Numeric or decimal number
Reimplemented from ADODB_DataDict.
Definition at line 20 of file datadict-db2.inc.php.
| ADODB2_db2::AlterColumnSQL | ( | $ | tabname, | |
| $ | flds | |||
| ) |
Definition at line 61 of file datadict-db2.inc.php.
References debug().

| ADODB2_db2::ChangeTableSQL | ( | $ | tablename, | |
| $ | flds, | |||
| $ | tableoptions = false | |||
| ) |
Allow basic table changes to DB2 databases DB2 will fatally reject changes to non character columns
If the first field of $v is the fieldname, and the second is the field type/size, we assume its an attempt to modify the column size, so check that it is allowed $v can have an indeterminate number of blanks between the fields, so account for that too
Definition at line 75 of file datadict-db2.inc.php.
References $sql, ADODB_DataDict::_GenFields(), ADODB_DataDict::CreateTableSQL(), ADODB_DataDict::MetaColumns(), and ADODB_DataDict::TableName().

| ADODB2_db2::DropColumnSQL | ( | $ | tabname, | |
| $ | flds | |||
| ) |
Definition at line 68 of file datadict-db2.inc.php.
References debug().

| ADODB2_db2::$databaseType = 'db2' |
Definition at line 17 of file datadict-db2.inc.php.
| ADODB2_db2::$seqField = false |
Definition at line 18 of file datadict-db2.inc.php.
1.7.1