File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
tests/integration_tests/debezium/sql Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -486,6 +486,7 @@ func TestDDLEvent(t *testing.T) {
486
486
query = "DROP TABLE test.table2"
487
487
e = & model.DDLEvent {
488
488
CommitTs : 1 ,
489
+ TableInfo : preTableInfo ,
489
490
PreTableInfo : preTableInfo ,
490
491
Query : query ,
491
492
Type : timodel .ActionDropTable ,
@@ -509,8 +510,8 @@ func TestDDLEvent(t *testing.T) {
509
510
"name": "test_cluster",
510
511
"ts_ms": 0,
511
512
"snapshot": "false",
512
- "db": "",
513
- "table": "",
513
+ "db": "test ",
514
+ "table": "table2 ",
514
515
"server_id": 0,
515
516
"gtid": null,
516
517
"file": "",
@@ -525,7 +526,13 @@ func TestDDLEvent(t *testing.T) {
525
526
"databaseName": "test",
526
527
"schemaName": null,
527
528
"ddl": "DROP TABLE test.table2",
528
- "tableChanges": []
529
+ "tableChanges": [
530
+ {
531
+ "type": "DROP",
532
+ "id": "\"test\".\"table2\"",
533
+ "table": null
534
+ }
535
+ ]
529
536
}
530
537
}` , buf .String ())
531
538
}
Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ CREATE TABLE t9 (
145
145
/* RENAME TABLE */
146
146
RENAME TABLE t7 TO rename_t7;
147
147
RENAME TABLE t8 To rename_t8, t9 To rename_t9;
148
+ RENAME TABLE rename_t8 TO test .t8 ;
148
149
149
150
/* TRUNCATE TABLE */
150
151
TRUNCATE TABLE rename_t7;
You can’t perform that action at this time.
0 commit comments