Commit 1a0d941b authored by Robert Ricci's avatar Robert Ricci
Browse files

Add support for a comment style used by newer versions of mysqldump

parent bfd8c9e5
...@@ -133,7 +133,7 @@ sub read_schema($) { ...@@ -133,7 +133,7 @@ sub read_schema($) {
# differs depending on whether or not we're in a create definition. # differs depending on whether or not we're in a create definition.
# #
if (!$create_table) { if (!$create_table) {
if (/^\s*$/ || /^\s*#/ || /^INSERT INTO/) { if (/^\s*$/ || /^\s*#/ || /^--/ || /^INSERT INTO/) {
# An insert statement, a comment, or a blank line. Do nothing. # An insert statement, a comment, or a blank line. Do nothing.
} elsif (/^CREATE TABLE (\w+) \($/) { } elsif (/^CREATE TABLE (\w+) \($/) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment