Skip to content

Commit

Permalink
allow COLLATE keyword at CREATE TABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
sstrigler authored and Stefan Strigler committed Apr 13, 2016
1 parent 10428b8 commit fed3de0
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 fed3de0

Please sign in to comment.