mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX Added missing dbDataType method to MSSQLDatabase
This commit is contained in:
parent
df785ecbbf
commit
93c87b4671
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user