BUGFIX Added missing dbDataType method to MSSQLDatabase

This commit is contained in:
Sean Harvey 2010-04-07 02:46:28 +00:00
parent df785ecbbf
commit 93c87b4671

View File

@ -1046,6 +1046,20 @@ class MSSQLDatabase extends SS_Database {
return 'RAND()';
}
/**
* This is a lookup table for data types.
*
* For instance, MSSQL uses 'BIGINT', while MySQL uses 'UNSIGNED'
* and PostgreSQL uses 'INT'.
*/
function dbDataType($type){
$values = array(
'unsigned integer'=>'BIGINT'
);
if(isset($values[$type])) return $values[$type];
else return '';
}
/**
* Convert a SQLQuery object into a SQL statement.
*/