mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-07 21:09:14 +00:00
PT-1914 Column data lost when 'Generated' is in the column comment (#482)
* PMM-1914 Fixed column parsing having generated Fixed table parser code that errouneously considered a column as generated when the default was empty DEFAULT '' and the COMMENT had the word 'Generated'. * PMM-1914 Updated TableParser in all programs * PT-1914 Updated changelog * PT-1914 Added test
This commit is contained in:
@@ -218,9 +218,10 @@ sub parse {
|
||||
|
||||
sub remove_quoted_text {
|
||||
my ($string) = @_;
|
||||
$string =~ s/[^\\]`[^`]*[^\\]`//g;
|
||||
$string =~ s/[^\\]"[^"]*[^\\]"//g;
|
||||
$string =~ s/[^\\]'[^']*[^\\]'//g;
|
||||
$string =~ s/\\['"]//g;
|
||||
$string =~ s/`[^`]*?`//g;
|
||||
$string =~ s/"[^"]*?"//g;
|
||||
$string =~ s/'[^']*?'//g;
|
||||
return $string;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user