Merge lp:~percona-toolkit-dev/percona-toolkit/fix-1127450-pt-archiver-bulk-insert-encoding into lp:percona-toolkit/2.2
Proposed by
Brian Fraser
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Daniel Nichter | ||||
Approved revision: | 569 | ||||
Merged at revision: | 577 | ||||
Proposed branch: | lp:~percona-toolkit-dev/percona-toolkit/fix-1127450-pt-archiver-bulk-insert-encoding | ||||
Merge into: | lp:percona-toolkit/2.2 | ||||
Diff against target: |
161 lines (+77/-19) 3 files modified
bin/pt-archiver (+29/-19) t/pt-archiver/bulk_insert.t (+36/-0) t/pt-archiver/samples/bug_1127450.sql (+12/-0) |
||||
To merge this branch: | bzr merge lp:~percona-toolkit-dev/percona-toolkit/fix-1127450-pt-archiver-bulk-insert-encoding | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Nichter | Approve | ||
Review via email:
|
To post a comment you must log in.
99 +use charnames ':full';
Will this work in 5.8?
8 + my $got_charset = $o->get('charset');
36 + my $charset = $got_charset || '';
Those seem redundant; just my $charset = $o->get('charset'); should work for both.
17 + . " INTO TABLE $dst->{db_tbl}"
18 + . ($got_charset ? "CHARACTER SET $got_charset" : "")
19 + . "("
I'm not aware of the "INSERT INTO TABLE foo CHARACTER SET bar" syntax, where is it documented? Is this tested?