Merge branch 'handle-literal-backticks-lp-1462904' into release-2.2.15

This commit is contained in:
frank-cizmich
2015-09-08 15:45:39 -03:00
14 changed files with 88 additions and 9 deletions

View File

@@ -1848,6 +1848,9 @@ sub parse {
my (%type_for, %is_nullable, %is_numeric, %is_autoinc);
foreach my $col ( @cols ) {
my $def = $def_for{$col};
$def =~ s/``//g;
my ( $type ) = $def =~ m/`[^`]+`\s([a-z]+)/;
die "Can't determine column type for $def" unless $type;
$type_for{$col} = $type;