16 if (!defined(
'ADODB_DIR'))
die();
30 switch(strtoupper($meta)) {
31 case 'C':
return 'VARCHAR';
32 case 'XL':
return 'LONGTEXT';
33 case 'X':
return 'TEXT';
35 case 'C2':
return 'VARCHAR';
36 case 'X2':
return 'LONGTEXT';
38 case 'B':
return 'LONGBLOB';
40 case 'D':
return 'DATE';
41 case 'T':
return 'DATETIME';
42 case 'L':
return 'TINYINT';
46 case 'I':
return 'INTEGER';
47 case 'I1':
return 'TINYINT';
48 case 'I2':
return 'SMALLINT';
49 case 'I8':
return 'BIGINT';
51 case 'F':
return 'DOUBLE';
52 case 'N':
return 'NUMERIC';
59 function _CreateSuffix($fname,$ftype,$fnotnull,$fdefault,$fautoinc,$fconstraint,$funsigned)
62 if ($funsigned) $suffix .=
' UNSIGNED';
63 if ($fnotnull) $suffix .=
' NOT NULL';
64 if (strlen($fdefault)) $suffix .=
" DEFAULT $fdefault";
65 if ($fautoinc) $suffix .=
' AUTOINCREMENT';
66 if ($fconstraint) $suffix .=
' '.$fconstraint;
72 if ($this->
debug) ADOConnection::outp(
"AlterColumnSQL not supported natively by SQLite");
76 function DropColumnSQL($tabname, $flds, $tableflds=
'', $tableoptions=
'')
78 if ($this->
debug) ADOConnection::outp(
"DropColumnSQL not supported natively by SQLite");
84 if ($this->
debug) ADOConnection::outp(
"RenameColumnSQL not supported natively by SQLite");
DropColumnSQL($tabname, $flds, $tableflds='', $tableoptions='')
AlterColumnSQL($tabname, $flds, $tableflds='', $tableoptions='')
_CreateSuffix($fname, $ftype, $fnotnull, $fdefault, $fautoinc, $fconstraint, $funsigned)
debug($variable='', $name=' *variable *', $line=' *line *', $file=' *file *', $recursiveDepth=3, $debugLevel=E_DEBUG)
RenameColumnSQL($tabname, $oldcolumn, $newcolumn, $flds='')