Commit 0c0805b
Mysql 8.0.14 version support Table map Event optional metaData (#446)
* feat: optional meta data
* feat: optional meta data implement
* feat: numeric_count , count parsing add
* refactor : python code lint
* Fix optional meta data over-read
Previously, `get_optional_meta_data` attempt to read trailing 4 bytes
reserved for Common-Footer.
Changes:
- Added `bytes_to_read` to indicate remaining bytes (including 4 bytes)
- Updated `get_optional_meta_data` to read everything but 4 bytes
* feat: fix bug signedness order
* refactor : name changed
* feat: fix bug if column length > =8
* feat : dump log add
* refactor : read tlv format
* feat: add _read_primary_keys_with_prefix & updates
* refactor: field_type -> MetadataFieldType
* refactor: fix to store optional_metadata as a variable
* Test: Add test_set_str_value, test_enum_str_value
* fix: fix dump location of optional_metadata
* Test: Add primary keys simple, prefix
* Test: Add signedness
* fix: fix enum_and_set_default_column_charset_list from dict to list
* Test: add percona:8.0.14 for optional metadata
* fix: percona version change to 8.0
* test: add isMySQL80AndMore in optional metadata test
* test: add isMySQL8014AndMore
* fix: fix binlog_row_metadata setting location
* test: add column_charset
* Test: add default_charset
* test: add mysql8 for optional metadata
* Test: add column_name and refactor other tests
* fix: modify isMySQL8014AndMore
* refactoring , parsing column
* fix: test pass
* fix: json name error
* feat : sync column
* feat: sync column data first version
* feat: add _get_field_type_key
* feat : add charset
* feat: get column_schema info from column info
* schema default value change
* refactor : code convention
* restore column schema from optional meta data
* delete print
* enum refactoring
* refactor delete unused code
* fix: reverse_field_type & remove None from dump
* feat: add mariadb charset
* fix : decode error ignore unknown decode type
* only optional metadata info
* Revert "only optional metadata info "
This reverts commit 59402f9.
* ignore decode error
* force encode utf-8 type
* error packet goes on
* remove: delete mysql8-related settings
* test: add geometry, enum_and_set, visibility testcases
* fix : Adding the missing column.
* fix: charset error
* refactor: variable name and protect None
-refactor variable name
-bug fix None lower()
* test: test add when table dropped
* fix : restore column schema from optional meta data
* fix: protect when database column schema length and column_count are same
* refactor: add charset_list.csv for adding charsets
* fix: modify .extract_charset_list.sh typo
* test add : when alter drop column case
* test add column comment dropped
* fix: test case drop table example
* fix: modify process of reading charset_list.csv
* setting BinlogStream class parameter optional_meta_data
* Revert "setting BinlogStream class parameter optional_meta_data "
This reverts commit b882122.
* Revert "Revert "setting BinlogStream class parameter optional_meta_data "" resolve conflict
This reverts commit ee27a5f.
* resolve conflict test case error
* resolve conflict missing
resolve conflict missing
* black lint
* remove testcase
* remove set, enum
* fix: testcase
fix : testcase
fix testcase
fix: testcase
* table init changed
table init changed
* remove ununsed variable
* check possible optional metadata version And delete get Table information
* cherry pick from column_schema delete
* Column Values add
* sync column
* TestCase resolved
test case resolved
Test Case resolved
* delete print debug and print optional meta data conditional
* docker test 8.0
* visibility None case
* for visibility test
* Column read String Mysql 5version
* Revert "docker test 8.0"
This reverts commit b9a2b66.
* fix : testcase 8 version
fix testcase
fix test case
testcase fix
* Add when column name list length 0
It measns Now BINLOG_ROW_METADATA = FULL
but still remain BINLOG_ROW_METADATA Mode = MINIMAL in Binlog
* mysql 8.0.23 env Test
* Revert "mysql 8.0.23 env Test"
This reverts commit 30b5fe2.
* enum catch out of index
enum when Mysql 5.7 case error
enum and set BINLOG_IMAGE = MINIMAL
erase print
---------
Co-authored-by: dongwook-chan <[email protected]>
Co-authored-by: mjs <[email protected]>
Co-authored-by: mikaniz <[email protected]>
Co-authored-by: starcat37 <[email protected]>
Co-authored-by: heehehe <[email protected]>1 parent 6aef850 commit 0c0805b
File tree
13 files changed
+1291
-577
lines changed- pymysqlreplication
- constants
- tests
13 files changed
+1291
-577
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | 179 | | |
181 | 180 | | |
182 | 181 | | |
| |||
210 | 209 | | |
211 | 210 | | |
212 | 211 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | 212 | | |
217 | 213 | | |
218 | 214 | | |
| |||
249 | 245 | | |
250 | 246 | | |
251 | 247 | | |
252 | | - | |
253 | 248 | | |
254 | 249 | | |
| 250 | + | |
255 | 251 | | |
256 | 252 | | |
257 | 253 | | |
| |||
295 | 291 | | |
296 | 292 | | |
297 | 293 | | |
298 | | - | |
299 | 294 | | |
300 | 295 | | |
301 | 296 | | |
| |||
306 | 301 | | |
307 | 302 | | |
308 | 303 | | |
309 | | - | |
310 | 304 | | |
311 | 305 | | |
| 306 | + | |
312 | 307 | | |
313 | 308 | | |
314 | 309 | | |
| |||
553 | 548 | | |
554 | 549 | | |
555 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
556 | 575 | | |
557 | 576 | | |
558 | 577 | | |
| |||
596 | 615 | | |
597 | 616 | | |
598 | 617 | | |
599 | | - | |
600 | 618 | | |
601 | 619 | | |
| 620 | + | |
602 | 621 | | |
603 | 622 | | |
604 | 623 | | |
| |||
715 | 734 | | |
716 | 735 | | |
717 | 736 | | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | 737 | | |
751 | 738 | | |
752 | 739 | | |
753 | 740 | | |
754 | 741 | | |
755 | 742 | | |
| 743 | + | |
756 | 744 | | |
757 | 745 | | |
758 | 746 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
33 | 28 | | |
34 | 29 | | |
35 | 30 | | |
| |||
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 41 | | |
52 | | - | |
| 42 | + | |
53 | 43 | | |
54 | 44 | | |
55 | 45 | | |
| |||
65 | 55 | | |
66 | 56 | | |
67 | 57 | | |
68 | | - | |
| 58 | + | |
69 | 59 | | |
70 | 60 | | |
71 | 61 | | |
72 | 62 | | |
73 | 63 | | |
74 | | - | |
75 | 64 | | |
76 | 65 | | |
77 | 66 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 67 | | |
90 | 68 | | |
91 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments