hugowan / maatkit

Automatically exported from code.google.com/p/maatkit
0 stars 0 forks source link

mk-parallel-dump halts with error when enum contains backtick #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

`country` enum('','Afghanistan','Albania','Algeria','American
Samoa','Andorra','Angola','Anguilla','Antarctica','Antigua And
Barbuda','Argentina','Armenia','Aruba','Australia','Austria','Azerbaijan','Baham
as','Bahrain','Bangladesh','Barbados','Belarus','Belgium','Belize','Benin','Berm
uda','Bhutan','Bolivia','Bosnia
And Herzegovina','Botswana','Bouvet Island','Brazil','British Indian Ocean
Territory','Brunei Darussalam','Bulgaria','Burkina
Faso','Burundi','Cambodia','Cameroon','Canada','Cape Verde','Cayman
Islands','Central African Republic','Chad','Chile','China','Christmas
Island','Cocos (keeling) Islands','Colombia','Comoros','Congo','Cook
Islands','Costa Rica','Croatia','Cuba','Cyprus','Czech Republic','C▒te
D`ivoire',

What is the expected output? What do you see instead?

Use of uninitialized value in pattern match (m//) at
/usr/bin/mk-parallel-dump line 1089, <STDIN> line 1.

What information do you get from mk-<toolname>--version?

mk-parallel-dump  Ver 1.0.10 Distrib 2442 Changeset 2434

What is your MySQL, Perl, DBI, and DBD::mysql version?
5.0.51a-3-log 
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
dunno other two, debian install (etch)

Original issue reported on code.google.com by kruisstr...@gmail.com on 21 Nov 2008 at 7:02

GoogleCodeExporter commented 9 years ago
This is a problem with trunk/common/TableParser.pm.  Thanks for the problem 
report.

Original comment by baron.schwartz on 24 Nov 2008 at 12:08

GoogleCodeExporter commented 9 years ago

Original comment by dan...@percona.com on 30 Nov 2008 at 5:16

GoogleCodeExporter commented 9 years ago

Original comment by dan...@percona.com on 12 Dec 2008 at 5:04

GoogleCodeExporter commented 9 years ago
Target these for release end of January 2009.

Original comment by baron.schwartz on 4 Jan 2009 at 5:04

GoogleCodeExporter commented 9 years ago
I'm working on this.

Original comment by dan...@percona.com on 8 Jan 2009 at 10:16

GoogleCodeExporter commented 9 years ago
In r2789 I created a test case for this issue but TableParser works as 
expected. The
problem may not be with the backtick but rather something else in the table's 
definition.

Could you please provide the full SHOW CREATE for this table?

Original comment by dan...@percona.com on 8 Jan 2009 at 10:45

GoogleCodeExporter commented 9 years ago
The MKDEBUG=1 output would also help.

Original comment by dan...@percona.com on 8 Jan 2009 at 10:46

GoogleCodeExporter commented 9 years ago
I don't have the original table anymore, as we're experimenting with maatkit 
and work
around bugs we encounter :)

But I've attached the SHOW CREATE from the current table in case it helps. We've
changed the backticks with normal ticks, compare with the country column 
excerpt I've
pasted in my original message.

Original comment by kruisstr...@gmail.com on 8 Jan 2009 at 11:37

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for the full, new table. I tested it just to be sure and it works.
Therefore, since we don't have the original table, and the test case with a 
backtick
in an enum value works without any modifications to TableParser, I'll close 
this issue.

If the problem happens again, please open a new issue.

Original comment by dan...@percona.com on 9 Jan 2009 at 6:22