Skip to content

Commit

Permalink
Merge pull request #2 from sstrigler/master
Browse files Browse the repository at this point in the history
allow COLLATE keyword at CREATE TABLE
  • Loading branch information
camcima committed Apr 14, 2016
2 parents 10428b8 + fed3de0 commit 5ec8a7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RegExpPattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static function tables()
$pattern .= '(?:\s+ENGINE=(?<engine>[^;\s]+))?\s*';
$pattern .= '(?:AUTO_INCREMENT=(?<autoIncrement>\d+))?\s*';
$pattern .= '(?:DEFAULT CHARSET=(?<defaultCharset>[^;\s]+))?\s*)';
$pattern .= '(?:COLLATE=.+?)?\s*';
$pattern .= '(?:\/\*.+?\*\/)?\s*';
$pattern .= ';/';
$pattern .= 's'; // modifier
Expand Down

0 comments on commit 5ec8a7c

Please sign in to comment.