TIMESTAMP: Setting Column Type
/**
* Sets the named property according to which DBMS is in use
*
* @return boolean true if successful. Does die() if the DBMS is unkown.
*/
function setTimestampType() {
switch ($this->phptype . ':' . $this->dbsyntax) {
case 'oci8:oci8':
$this->TimestampType = ' DATE ';
break;
case 'mysql:mysql':
case 'mysqli:mysqli':
case 'mssql:mssql':
case 'odbc:access':
case 'sybase:sybase':
$this->TimestampType = ' DATETIME ';
break;
case 'fbsql:fbsql':
case 'ibase:firebird':
case 'odbc:db2':
case 'sqlite:sqlite':
$this->TimestampType = ' TIMESTAMP ';
break;
case 'pgsql:pgsql':
$this->TimestampType = ' TIMESTAMP(0) ';
break;
default:
$this->TimestampType = false;
die('unknown phptype/dbsyntax in setTimestampType()');
}
return true;
}