Skip to content

Commit 89716a7

Browse files
committed
[FLINK-38641][cdc/mysql] Unquote double quotes from default values on MySQL
1 parent cb6780f commit 89716a7

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/test/java/org/apache/flink/cdc/connectors/mysql/table/MySqlConnectorITCase.java

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,39 +1514,6 @@ void testDdlWithDefaultStringValue() throws Exception {
15141514
+ " double_c DOUBLE DEFAULT ' 25',\n"
15151515
+ " double_un_c DOUBLE UNSIGNED DEFAULT ' 26',\n"
15161516
+ " double_un_z_c DOUBLE UNSIGNED ZEROFILL DEFAULT ' 27',\n"
1517-
+ " tiny_un_c TINYINT UNSIGNED DEFAULT ' 28 '"
1518-
+ " );");
1519-
statement.execute(
1520-
" CREATE TABLE default_value_test_ignore_with_quote (\n"
1521-
+ " id INTEGER NOT NULL PRIMARY KEY, \n"
1522-
+ " tiny_c TINYINT DEFAULT \" 0 \", \n"
1523-
+ " boolean_c BOOLEAN DEFAULT \" 1 \", \n"
1524-
+ " tiny_un_z_c TINYINT UNSIGNED ZEROFILL DEFAULT \" 2 \", \n"
1525-
+ " small_c SMALLINT DEFAULT \" 3 \", \n"
1526-
+ " small_un_c SMALLINT UNSIGNED DEFAULT \" 4 \",\n"
1527-
+ " small_un_z_c SMALLINT UNSIGNED ZEROFILL DEFAULT \" 5 \", \n"
1528-
+ " medium_c MEDIUMINT DEFAULT \" 6 \", \n"
1529-
+ " medium_un_c MEDIUMINT UNSIGNED DEFAULT \" 7 \", \n"
1530-
+ " medium_un_z_c MEDIUMINT UNSIGNED ZEROFILL DEFAULT \" 8 \", \n"
1531-
+ " int_c INTEGER DEFAULT \" 9 \", \n"
1532-
+ " int_un_c INTEGER UNSIGNED DEFAULT \" 10 \", \n"
1533-
+ " int_un_z_c INTEGER UNSIGNED ZEROFILL DEFAULT \" 11 \",\n"
1534-
+ " int11_c INT(11) DEFAULT \" 12 \", \n"
1535-
+ " big_c BIGINT DEFAULT \" 13 \", \n"
1536-
+ " big_un_c BIGINT UNSIGNED DEFAULT \" 14 \", \n"
1537-
+ " big_un_z_c BIGINT UNSIGNED ZEROFILL DEFAULT \" 15 \", \n"
1538-
+ " decimal_c DECIMAL(8, 4) DEFAULT \" 16 \", \n"
1539-
+ " decimal_un_c DECIMAL(8, 4) UNSIGNED DEFAULT \" 17 \", \n"
1540-
+ " decimal_un_z_c DECIMAL(8, 4) UNSIGNED ZEROFILL DEFAULT \" 18 \", \n"
1541-
+ " numeric_c NUMERIC(6, 0) DEFAULT \" 19 \", \n"
1542-
+ " big_decimal_c DECIMAL(65, 1) DEFAULT \" 20 \",\n"
1543-
+ " real_c REAL DEFAULT \" 21.0\",\n"
1544-
+ " float_c FLOAT DEFAULT \" 22.0\",\n"
1545-
+ " float_un_c FLOAT UNSIGNED DEFAULT \" 23\",\n"
1546-
+ " float_un_z_c FLOAT UNSIGNED ZEROFILL DEFAULT \" 24\",\n"
1547-
+ " double_c DOUBLE DEFAULT \" 25\",\n"
1548-
+ " double_un_c DOUBLE UNSIGNED DEFAULT \" 26\",\n"
1549-
+ " double_un_z_c DOUBLE UNSIGNED ZEROFILL DEFAULT \" 27\",\n"
15501517
+ " tiny_un_c TINYINT UNSIGNED DEFAULT \" 28 \""
15511518
+ " );");
15521519
}

0 commit comments

Comments
 (0)