numeric rewriting should be case insensitive

This commit is contained in:
Matthew Bucci
2024-10-17 01:18:11 -07:00
parent d8b83c88e2
commit d46dba6148
2 changed files with 26 additions and 3 deletions
+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) {