add end to list of reserved keywords

This commit is contained in:
Matthew Bucci
2024-10-18 23:31:21 -07:00
parent 129aa7f171
commit 1327b9d82f
2 changed files with 62 additions and 1 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ class CreateTableSQLRewriter extends AbstractSQLRewriter
$columnsAndKeys = $matches[3];
$suffix = ')' . $matches[4];
$regex = '/(?:^|\s*,\s*)(\b(?:timestamp|date|time|default)\b)\s*(?=\s+\w+)/i';
$regex = '/(?:^|\s*,\s*)(\b(?:timestamp|date|time|default|end)\b)\s*(?=\s+\w+)/i';
// Callback function to add quotes around protected column names
$callback = function($matches) {