gh-ost/localtests
Shlomi Noach 9bc508f068
Enum to varchar (#963)
* 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

* Generated column as part of UNIQUE (or PRIMARY) KEY

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

* skip analysis of generated column data type in unique key

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

* All MySQL DBs limited to max 3 concurrent/idle connections

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

* hooks: reporting GH_OST_ETA_SECONDS. ETA stored as part of migration context

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

* GH_OST_ETA_NANOSECONDS

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

* N/A denoted by negative value

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

* ETAUnknown constant

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

* Convering enum to varchar

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

* test: not null

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

* first attempt at setting enum-to-string right

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

* fix insert query

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

* store enum values, use when populating

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

* apply EnumValues to mapped column

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

* fix compilation error

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

* gofmt

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2021-06-10 17:17:49 +02:00
..
2018-11-01 15:27:28 +02:00
2018-11-01 15:27:28 +02:00
2018-11-20 19:48:59 +02:00
2018-02-26 18:38:39 +02:00
2018-11-28 10:19:28 +02:00
2016-08-23 12:13:40 +02:00
2017-07-26 12:29:32 +03:00
2021-06-10 17:17:49 +02:00
2016-10-14 09:34:27 +02:00
2016-10-14 09:34:27 +02:00
2017-09-05 06:56:19 +03:00
2018-05-06 11:19:03 +03:00
2018-03-08 07:25:52 +02:00
2018-02-26 15:22:50 +02:00
2016-10-26 20:03:09 +02:00
2017-07-20 17:05:45 +03:00
2016-09-08 09:27:18 +02:00
2016-08-22 16:35:21 +02:00
2018-02-26 18:35:55 +02:00
2020-02-05 10:12:29 +02:00
2018-02-26 18:29:45 +02:00
2016-10-13 13:13:51 +02:00
2018-02-26 18:29:45 +02:00
2016-12-05 13:41:31 +01:00
2018-02-26 18:24:42 +02:00
2018-02-26 18:24:42 +02:00
2016-08-22 11:14:06 +02:00
2016-09-27 12:45:22 +02:00
2016-09-27 12:45:22 +02:00
2016-09-06 09:38:41 +02:00
2016-09-06 12:15:53 +02:00
2018-10-29 10:09:15 +02:00