diff --git a/code/SQLite3Database.php b/code/SQLite3Database.php index 31eed42..c53d99f 100644 --- a/code/SQLite3Database.php +++ b/code/SQLite3Database.php @@ -821,6 +821,21 @@ class SQLite3Database extends SS_Database { return 'random()'; } + /* + * This is a lookup table for data types. + * For instance, Postgres uses 'INT', while MySQL uses 'UNSIGNED' + * So this is a DB-specific list of equivalents. + */ + function dbDataType($type){ + $values=Array( + 'unsigned integer'=>'INT' + ); + + if(isset($values[$type])) + return $values[$type]; + else return ''; + } + /* * This will return text which has been escaped in a database-friendly manner */