Commit Graph

35 Commits

Author SHA1 Message Date
Tim Vaillancourt
c71dbf9ef3
Copy auto increment (#967)
* v1.1.0

* WIP: copying AUTO_INCREMENT value to ghost table
Initial commit: towards setting up a test suite

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* greping for 'expect_table_structure' content

* Adding simple test for 'expect_table_structure' scenario

* adding tests for AUTO_INCREMENT value after row deletes. Should initially fail

* clear event beforehand

* parsing AUTO_INCREMENT from alter query, reading AUTO_INCREMENT from original table, applying AUTO_INCREMENT value onto ghost table if applicable and user has not specified AUTO_INCREMENT in alter statement

* support GetUint64

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* minor update to test

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* adding test for user defined AUTO_INCREMENT statement

Co-authored-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2021-05-14 15:32:56 +02:00
Shlomi Noach
08f171790b Update go-sql-driver to latest 2020-02-13 13:45:39 +02:00
Shlomi Noach
b8cdd5d133 Update go-sql-driver/mysql 2019-05-16 2019-05-16 13:29:40 +03:00
Shlomi Noach
7e0bdbe72a old timestamp, old datetime 2019-01-01 12:28:34 +02:00
Shlomi Noach
7c17cee010 reverting some changes 2019-01-01 11:47:41 +02:00
Shlomi Noach
0be91ba0f2 trying something... 2019-01-01 11:39:43 +02:00
Shlomi Noach
f25d0b1a3c applying datetime patch 2019-01-01 11:02:27 +02:00
Shlomi Noach
14e396ed73 updated go-mysql 2019-01-01 10:58:12 +02:00
Shlomi Noach
255314927d Updated go-mysql library, now with fix to decimal. May break datetime 2019-01-01 10:57:46 +02:00
Shlomi Noach
1f772dfcd9 experiment done: restoring patch 2018-05-15 15:07:12 +03:00
Shlomi Noach
0f9a26ef6c experiment: removing patch 2018-05-15 14:03:10 +03:00
Shlomi Noach
80387d9160 experiment: handle zero MYSQL_TYPE_DATETIME 2018-05-15 12:45:45 +03:00
Shlomi Noach
2376c91704 Fix to long JSON values 2018-04-11 09:11:27 +03:00
Shlomi Noach
fcda14634d go-mysql library to avoid printing password in cleartext 2018-01-11 14:51:14 +02:00
Shlomi Noach
3bea583595 fixed fraction of the second problem 2017-07-19 15:54:39 +03:00
Shlomi Noach
48e68affb3 reapply: support secPart (subsecond) resolution in timestamp and datetime 2017-02-12 13:24:19 +02:00
Shlomi Noach
350eab79bb adding vendor/github.com/ngaut/ dependency 2017-02-12 13:17:56 +02:00
Shlomi Noach
f6af07ff7a updated go-mysql library 2017-02 2017-02-12 13:13:54 +02:00
Shlomi Noach
0e7e15804f handling subsecond resolution DATETIME in binary logs
added localtests for subsecond in DATETIME and TIMESTAMP
2016-10-31 15:09:02 +01:00
Shlomi Noach
c5cf552dad fixed testing dependenies 2016-10-27 15:05:25 +02:00
Shlomi Noach
6ffd6b272e row_event: returning native time.Time value on decodeTimestamp; removed legacy comments 2016-10-13 13:14:31 +02:00
Shlomi Noach
5de8a010df restoring original row_event code; tampering with applier time_zone based on global timze_zone 2016-10-10 22:33:54 +02:00
Shlomi Noach
6750959e1a configurable time-zone, native time parsing 2016-10-10 11:39:57 +02:00
Shlomi Noach
33ebc2d177 converting DATETIME values to UTC 2016-09-28 10:28:46 +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
950fde2ad6 row_event converts timestamps to UTC 2016-08-22 15:45:38 +02:00
Shlomi Noach
8c17701e58 more attempts 2016-06-16 11:49:16 +02:00
Shlomi Noach
2cab1eaab7 more attempts 2016-06-16 11:48:39 +02:00
Shlomi Noach
869bc4b6da more attempts 2016-06-16 11:46:44 +02:00
Shlomi Noach
e0aca0a768 more attempts 2016-06-16 11:46:06 +02:00
Shlomi Noach
02ec1d2b0c trying to get rid of godeps 2016-06-16 11:30:43 +02:00
Shlomi Noach
41569d8161 trying something else. Go deps are hell 2016-06-16 11:28:42 +02:00
Shlomi Noach
9d1c420ff1 adding go/vendor dependencies 2016-06-16 11:19:58 +02:00
Shlomi Noach
1cfdb27a3a added siddontang dependencies 2016-06-16 11:15:56 +02:00
Shlomi Noach
f0e37cde1c added vendor packages 2016-04-01 16:04:27 +02:00