numeric rewriting should be case insensitive

This commit is contained in:
Matthew Bucci committed 2024-10-17 01:18:11 -07:00
1 parent d8b83c88e2
commit d46dba6148
2 files changed
+26 -3

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ class CreateTableSQLRewriter extends AbstractSQLRewriter
$numeric_types_imploded = implode('|', $numeric_types);
// Prepare regex pattern to match 'type(x)'
$pattern = "/(" . $numeric_types_imploded . ")\(\d+\)/";
$pattern = "/(" . $numeric_types_imploded . ")\(\d+\)/i";
// Execute type find & replace
$sql = preg_replace_callback($pattern, function ($matches) {