MDL-18420 reserved words - lowercase sqlite reserved words
This commit is contained in:
@@ -430,26 +430,26 @@ class sqlite_sql_generator extends sql_generator {
|
||||
public static function getReservedWords() {
|
||||
/// From http://www.sqlite.org/lang_keywords.html
|
||||
$reserved_words = array (
|
||||
'ADD', 'ALL', 'ALTER', 'AND', 'AS', 'AUTOINCREMENT',
|
||||
'BETWEEN', 'BY',
|
||||
'CASE', 'CHECK', 'COLLATE', 'COLUMN', 'COMMIT', 'CONSTRAINT', 'CREATE', 'CROSS',
|
||||
'DEFAULT', 'DEFERRABLE', 'DELETE', 'DISTINCT', 'DROP',
|
||||
'ELSE', 'ESCAPE', 'EXCEPT', 'EXISTS',
|
||||
'FOREIGN', 'FROM', 'FULL',
|
||||
'GROUP',
|
||||
'HAVING',
|
||||
'IN', 'INDEX', 'INNER', 'INSERT', 'INTERSECT', 'INTO', 'IS', 'ISNULL',
|
||||
'JOIN',
|
||||
'LEFT', 'LIMIT',
|
||||
'NATURAL', 'NOT', 'NOTNULL', 'NULL',
|
||||
'ON', 'OR', 'ORDER', 'OUTER',
|
||||
'PRIMARY',
|
||||
'REFERENCES', 'REGEXP', 'RIGHT', 'ROLLBACK',
|
||||
'SELECT', 'SET',
|
||||
'TABLE', 'THEN', 'TO', 'TRANSACTION',
|
||||
'UNION', 'UNIQUE', 'UPDATE', 'USING',
|
||||
'VALUES',
|
||||
'WHEN', 'WHERE',
|
||||
'add', 'all', 'alter', 'and', 'as', 'autoincrement',
|
||||
'between', 'by',
|
||||
'case', 'check', 'collate', 'column', 'commit', 'constraint', 'create', 'cross',
|
||||
'default', 'deferrable', 'delete', 'distinct', 'drop',
|
||||
'else', 'escape', 'except', 'exists',
|
||||
'foreign', 'from', 'full',
|
||||
'group',
|
||||
'having',
|
||||
'in', 'index', 'inner', 'insert', 'intersect', 'into', 'is', 'isnull',
|
||||
'join',
|
||||
'left', 'limit',
|
||||
'natural', 'not', 'notnull', 'null',
|
||||
'on', 'or', 'order', 'outer',
|
||||
'primary',
|
||||
'references', 'regexp', 'right', 'rollback',
|
||||
'select', 'set',
|
||||
'table', 'then', 'to', 'transaction',
|
||||
'union', 'unique', 'update', 'using',
|
||||
'values',
|
||||
'when', 'where'
|
||||
);
|
||||
return $reserved_words;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user