Commit Graph

736 Commits

Author SHA1 Message Date
Shlomi Noach
33ebc2d177 converting DATETIME values to UTC 2016-09-28 10:28:46 +02:00
Shlomi Noach
ddf4f88338 refined tests: tz-datetime only tests datetime issues; tz-datetime-ts converts datetime to timestamp 2016-09-28 10:28:21 +02:00
Shlomi Noach
420370433d adding datetime->timestamp conversion test 2016-09-28 09:44:05 +02:00
Shlomi Noach
51f0c0d957 fix arg conversion in BuildDMLUpdateQuery 2016-09-27 13:08:31 +02:00
Shlomi Noach
db2c8a254f added update/delete tests for multi-charset/alter tests 2016-09-27 12:57:05 +02:00
Shlomi Noach
109ddb0452 fixed integer random values 2016-09-27 12:56:37 +02:00
Shlomi Noach
253e0a1406 columns not null in test 2016-09-27 12:45:22 +02:00
Shlomi Noach
d32534710e added tests for unsigned rename/reorder 2016-09-27 12:41:46 +02:00
Shlomi Noach
e256e06826 Merge remote-tracking branch 'origin/master' into binlog_insert_column_lookup_issue 2016-09-27 11:05:59 +02:00
Shlomi Noach
a6b33427de Merge pull request #240 from github/test-column-reorder
added tests for column-reorder
2016-09-22 09:25:16 +02:00
Shlomi Noach
63419b3636 added test for renaming and reordering same column 2016-09-21 09:45:36 +02:00
Shlomi Noach
2bf882de16 added rename & reorder test 2016-09-21 09:01:33 +02:00
Jonah Berquist
f58a8be086 Merge pull request #241 from MichaelGooden/patch-1
Update documentation link.
2016-09-20 15:06:03 -07:00
Michael Gooden
008ff1f008 Update documentation link. 2016-09-20 22:30:41 +02:00
Shlomi Noach
53ef6eae5a added tests for column-reorder 2016-09-20 16:00:07 +02:00
Jonah Berquist
13b35478a1 Merge pull request #238 from jbodah/patch-2
Fix broken docs link in command-line-flags
2016-09-19 15:47:28 -07:00
Josh Bodah
36ab61c278 Fix broken docs link in command-line-flags 2016-09-19 14:57:34 -04:00
Paulo Bittencourt
8c5dcca187 Add test for modifying columns to different charsets 2016-09-19 09:37:08 -04:00
Paulo Bittencourt
2f80c9d424 Used the source column definition to fetch and convert insert values
When processing binlog insert statements, we want to use `sharedColumns`
to decide which values to fetch and convert from the insert DML event.

We only want to  `mappedShareColumns` to define the column names in the
`replace into ...` statement.
2016-09-14 11:28:30 -04:00
Paulo Bittencourt
25b5474cfa Add test case for renaming a column and only applying inserts
This catches a bug in `sql.BuildDMLInsertQuery` where we we are fetching
the insert values using the renamed column's name, and end up fetching
the value of the wrong column.

The test in `localtests/rename` did not catch this because binlog
update events were "correcting" the error, as they follow a different
code path that does not contain the bug.
2016-09-14 11:28:30 -04:00
Paulo Bittencourt
671fc71067 Add test case for altering a column's charset
This catches a bug in `sql.BuildDMLInsertQuery` where we are using the target
column's Charset to drive the value conversion.  In the case where we are
altering the charset, the Charset used for conversion will be different than
the original column's charset, resulting in an erroneous conversion.
2016-09-14 11:26:43 -04:00
Shlomi Noach
eac6a726de Merge pull request #231 from github/named-cut-over
Named cut over
2016-09-13 08:23:00 -07:00
Shlomi Noach
7517d48776 updated version 2016-09-13 05:35:43 -07:00
Shlomi Noach
a7627091a7 Merge branch 'master' into named-cut-over 2016-09-13 05:25:16 -07:00
Shlomi Noach
5215dd5999 Merge pull request #234 from github/vendor-charmap
added charset dependencies
2016-09-13 05:24:19 -07:00
Shlomi Noach
daed73fa4e Merge pull request #232 from github/end-rowcopy-progress
rowcount progress at 100% when row-copy completes
2016-09-12 17:22:56 -07:00
Shlomi Noach
f81b51e9d6 added charset dependencies 2016-09-12 13:32:24 -07:00
Shlomi Noach
e5e0444cc6 supporting --force-named-cut-over
- when given, user _must_ specify table name
  and of course table name must match migrated table
2016-09-12 19:17:36 +02:00
Shlomi Noach
0a8be1dd22 excplicitly breaking on NoPrintStatusRule 2016-09-12 17:39:56 +02:00
Shlomi Noach
1c6f828091 refactored server command into server.go
- added support for cut-over=<tablename>
- refactored more code into context
2016-09-12 12:38:14 +02:00
Shlomi Noach
16fc19b157 rowcount progress at 100% when row-copy completes 2016-09-12 10:25:55 +02:00
Shlomi Noach
c3e65d45e2 Merge pull request #227 from github/testing-chartset
added charset support & tests
2016-09-09 14:59:01 +02:00
Shlomi Noach
f4693274fb Extracted and generalized encoding logic to encoding.go 2016-09-08 09:37:22 +02:00
Shlomi Noach
dc3a03ad6f added mixed-charset tests 2016-09-08 09:27:18 +02:00
Shlomi Noach
791d963ea0 Character set recognition and manipulation
- Identifying textual characters sets; converting into specific type when applying dml events
- Refactored `ColumnsList`: introducing `Column` type
- Refactored `unsigned` handling, as part of `Column`
- `Column` type supports `convertArg()`: converting value of argument according to column data type
- DB URI attempts `utf8mb4,utf8,latin1` charsets in that order (first one to be recognized wins)
- Local tests filter by pattern
- Local tests append table schema on failure
- Local tests do not have postpone flag file
- Added character set local tests: `utf8`, `utf8mb4`, `latin1`
2016-09-07 14:24:11 +02:00
Shlomi Noach
f646021527 added utf8mb4 test 2016-09-06 12:15:53 +02:00
Shlomi Noach
095c607f45 clarified test argument 2016-09-06 09:46:11 +02:00
Shlomi Noach
31a3add1b0 text tests 2016-09-06 09:38:41 +02:00
Shlomi Noach
0adf258b13 added charset tests 2016-09-06 09:36:29 +02:00
Shlomi Noach
7a4ae014d5 Merge pull request #223 from github/assume-master-host
support for --assume-master-host, master-master/tungsten
2016-09-05 09:58:35 +02:00
Shlomi Noach
88f2af8111 support for --assume-master-host, master-master/tungsten 2016-09-02 13:09:18 +02:00
Shlomi Noach
96f108d3b4 Merge pull request #221 from twotwotwo/override-applier-host
Add -override-applier-host for use with -allow-master-master
2016-09-02 11:32:04 +02:00
Shlomi Noach
0f2a43dc54 Merge pull request #222 from github/hooks-more-info
Hooks: more environment variables
2016-09-02 10:55:04 +02:00
Shlomi Noach
4331593741 elaborate hooks doc 2016-09-02 10:51:22 +02:00
Shlomi Noach
a58e80387e More environment variables in hooks 2016-09-02 10:48:29 +02:00
Shlomi Noach
75d225353f Merge pull request #220 from Wattpad/exit-on-hook-replication-stop-failure
Fail operation if onStopReplication hook fails
2016-09-02 09:39:43 +02:00
Shlomi Noach
fd42ccfb49 Merge pull request #219 from github/doc-updates
Doc updates: subsecond throttling and more
2016-09-02 08:54:37 +02:00
Shlomi Noach
736c8a042b typos 2016-09-02 08:54:21 +02:00
Shlomi Noach
3ee006968a Merge pull request #218 from github/eta-status
Eta status
2016-09-02 08:52:56 +02:00
randall
82110fcfcf Add -override-applier-host for use with -allow-master-master
for configurations where writes are meant to go to one master, but gh-ost can't automatically determine which
2016-09-01 20:29:26 -07:00