Primary key name not quoted in showed_nulls test

Bug #987344 reported by Paul Golownia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Data Dumper
Fix Released
High
Max Bubenick

Bug Description

Our error prior to patch:
SELECT /*!40001 SQL_NO_CACHE */ * FROM `jabberd2`.`active` WHERE object-sequence IS NULL OR (`object-sequence` >= 1 AND `object-sequence` < 100702)

Fixed after patch:
SELECT /*!40001 SQL_NO_CACHE */ * FROM `jabberd2`.`active` WHERE `object-sequence` IS NULL OR (`object-sequence` >= 1 AND `object-sequence` < 100702)

patch against mydumper-0.2.3

709c709,710
< chunks=g_list_append(chunks,g_strdup_printf("%s%s(`%s` >= %llu AND `%s` < %llu)",
---
> chunks=g_list_append(chunks,g_strdup_printf("%s%s%s%s(`%s` >= %llu AND `%s` < %llu)",
> !showed_nulls?"`":"",
710a712
> !showed_nulls?"`":"",

Revision history for this message
Paul Golownia (zi) wrote :
Changed in mydumper:
milestone: none → 0.5.3
Changed in mydumper:
milestone: 0.5.3 → 0.6.0
assignee: nobody → Max Bubenick (max-bubenick)
status: New → Fix Committed
Changed in mydumper:
importance: Undecided → High
Changed in mydumper:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.