TableSyncNibble fails to quote varchar columns in primary key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Invalid
|
Undecided
|
Unassigned |
Bug Description
# TableSyncNibble
# TableSyncNibble
#
Cannot nibble table `wc_gyn`
I believe this might have been report once before but without PTDEBUG=1 turn on.
In this example, the column 'id_type' is a varchar() and the WHERE criteria must be quoted, so:
(`pat_id` = 548043 AND `id` = 6337 AND `id_type` < user) -- BAD
should be:
(`pat_id` = 548043 AND `id` = 6337 AND `id_type` < 'user') -- MAYBE???
Now that I think of it, the expression `id_type` < 'user' may produce incorrect results when comparing strings.
Changed in percona-toolkit: | |
milestone: | none → 2.1.4 |
importance: | Undecided → Medium |
Changed in percona-toolkit: | |
assignee: | nobody → Brian Fraser (fraserbn) |
Changed in percona-toolkit: | |
status: | Confirmed → In Progress |
Changed in percona-toolkit: | |
status: | In Progress → Incomplete |
Changed in percona-toolkit: | |
milestone: | 2.1.4 → none |
Odd that the tool didn't quote "user"--it should. It won't quote values that it thinks are hex, but "user" is certainly not hex. What's your full command line? And could you also provide a SHOW CREATE TABLE for the table so we can make sure the tool is parsing it correctly.