From fed3de064f502b7bcd742ffa1f875299f325b2f4 Mon Sep 17 00:00:00 2001 From: Stefan Strigler Date: Wed, 13 Apr 2016 15:41:33 +0200 Subject: [PATCH] allow COLLATE keyword at CREATE TABLE --- src/RegExpPattern.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/RegExpPattern.php b/src/RegExpPattern.php index 7e9d6d6..b5b681f 100644 --- a/src/RegExpPattern.php +++ b/src/RegExpPattern.php @@ -36,6 +36,7 @@ public static function tables() $pattern .= '(?:\s+ENGINE=(?[^;\s]+))?\s*'; $pattern .= '(?:AUTO_INCREMENT=(?\d+))?\s*'; $pattern .= '(?:DEFAULT CHARSET=(?[^;\s]+))?\s*)'; + $pattern .= '(?:COLLATE=.+?)?\s*'; $pattern .= '(?:\/\*.+?\*\/)?\s*'; $pattern .= ';/'; $pattern .= 's'; // modifier