Commit Graph

159 Commits

Author SHA1 Message Date
Shlomi Noach
36c669dd75
Generated column as part of UNIQUE (or PRIMARY) KEY (#919)
* 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>
2021-05-24 20:16:49 +02:00
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
eaa1839a9b
Merge branch 'master' into test-latin1text 2020-02-15 09:27:10 +02:00
Shlomi Noach
30e2512b39
Merge branch 'master' into test-latin1text 2020-02-15 08:33:25 +02:00
Shlomi Noach
ef5cbed0ec
Merge branch 'master' into tests-varbinary 2020-02-15 08:33:12 +02:00
Shlomi Noach
4fd4be1308
Merge branch 'master' into tests-varbinary 2020-02-14 09:03:38 +02:00
Shlomi Noach
3cc41e24a8
Merge branch 'master' into test-latin1text 2020-02-14 09:02:53 +02:00
Shlomi Noach
6894916516
Merge branch 'master' into bigint-change-nullable 2020-02-14 09:00:05 +02:00
Shlomi Noach
a6d0d5ca26 not null for unique key test 2020-02-05 10:12:29 +02:00
Shlomi Noach
90ab2368dd graceful sleep; remove extra debug info 2019-08-11 15:21:04 +03:00
Shlomi Noach
1305ff6e01 debug info 2019-08-11 15:17:48 +03:00
Zach Moazeni
84fe34b22c
Bump default-retries to 3
There are some legitimate retries that can occur during testing. Namely
`logic.ExpectProcess()` (in `applier.go`). We'll look for a process that
does exist, but timing-wise doesn't have the `state` or `info` columns
populated.

Without this, the test will fail abruptly.
2019-06-10 09:24:03 -04:00
Shlomi Noach
4d7370529b Always use NO_AUTO_VALUE_ON_ZERO 2019-03-24 11:32:37 +02:00
Shlomi Noach
c37ea5dea0
Merge branch 'master' into tests-updates 2019-02-10 11:24:19 +02:00
Shlomi Noach
dd41d9a4b1 Testing nullable int 2019-01-03 11:18:07 +02:00
Shlomi Noach
6f673fa627
Merge branch 'master' into test-decimal 2018-11-28 10:20:07 +02:00
Shlomi Noach
00f5044f4f Testing DECIMAL datatype 2018-11-28 10:19:28 +02:00
Shlomi Noach
a7aa4eb2c0 adding latin1 2018-11-20 19:48:59 +02:00
Shlomi Noach
5d4d1cd31b more interesting sample data 2018-11-20 19:37:51 +02:00
Shlomi Noach
13b17b93c4 testing: convert to character set utf8mb4 2018-11-20 19:35:03 +02:00
Shlomi Noach
c32823c10a BIT datatype tests 2018-11-01 15:27:28 +02:00
Shlomi Noach
48e01ad39b Adding binary/varbinary tests 2018-10-29 10:09:15 +02:00
Shlomi Noach
02602302a0 more attempts at session time zone 2018-10-16 11:25:46 +03:00
Shlomi Noach
9512a2de40 forcinf UTC timezone 2018-10-16 10:30:19 +03:00
Shlomi Noach
b8e02df0fe reading original_sql_mode once 2018-10-16 10:22:59 +03:00
Shlomi Noach
789d247d83 localtests support throttle flag file 2018-10-16 09:47:30 +03:00
Shlomi Noach
2c6b79c4e7 test: add generated column 2018-05-22 14:09:48 +03:00
Shlomi Noach
03b8dadda6 added generated column rename test 2018-05-22 12:55:57 +03:00
Shlomi Noach
db871b42c4 Support for GENERATED (aka virtual) columns 2018-05-22 12:36:52 +03:00
Shlomi Noach
08637009a6 supporting modified sql_mode 2018-05-15 13:47:33 +03:00
Shlomi Noach
7d3514be08
Merge branch 'master' into incorrect-datetime-1970 2018-05-08 21:17:19 +03:00
Shlomi Noach
fb00a13871 Rejecting RENAME TO|AS 2018-05-06 11:19:03 +03:00
Shlomi Noach
2376c91704 Fix to long JSON values 2018-04-11 09:11:27 +03:00
Shlomi Noach
a17f2df359 more elaborate test 2018-03-08 07:25:52 +02:00
Shlomi Noach
b7eacbb75f testing gbk charset 2018-03-08 07:21:50 +02:00
Shlomi Noach
db9a12a6cf Added spatial (GEOMETRY, POINT) tests 2018-03-05 09:06:58 +02:00
Shlomi Noach
07a4a69049 quiet grep 2018-02-26 18:44:36 +02:00
Shlomi Noach
49b3917d2b skipping wording 2018-02-26 18:43:41 +02:00
Shlomi Noach
fa96757332 5.5 excluded tests 2018-02-26 18:41:42 +02:00
Shlomi Noach
9061d4fa5b 5.5 excluded tests 2018-02-26 18:38:39 +02:00
Shlomi Noach
ac7765eb9f 5.5 excluded tests 2018-02-26 18:35:55 +02:00
Shlomi Noach
242ee08363 5.5 excluded tests 2018-02-26 18:33:38 +02:00
Shlomi Noach
2d56df3304 5.5 excluded tests 2018-02-26 18:29:45 +02:00
Shlomi Noach
a9ead9e0f0 5.5 excluded tests 2018-02-26 18:24:42 +02:00
Shlomi Noach
df9dd49a47 support for ignored versions 2018-02-26 15:22:50 +02:00
Shlomi Noach
00a4d1f960 prebuilt binary for localtests 2018-02-26 14:32:58 +02:00
Shlomi Noach
482a521253 outputting test log file on error 2018-02-12 11:14:40 +02:00
Shlomi Noach
3d59f2fbd2 /tmp path 2018-02-11 15:03:42 +02:00
Shlomi Noach
9b0efd0d93 delegating to 127.0.0.1 2018-02-11 14:58:16 +02:00
Shlomi Noach
4515e91490 tests more verbose 2018-02-11 14:08:39 +02:00