Skip to content

Commit fa5bbd7

Browse files
committed
Fix keyless table schema test expectations
Updated expected results for keyless table schema queries: - DESCRIBE keyless: Default column now shows 'NULL' instead of nil - SHOW COLUMNS FROM keyless: Default column now shows 'NULL' instead of nil - SHOW FULL COLUMNS FROM keyless: Default column now shows 'NULL' instead of nil - SHOW CREATE TABLE keyless: DDL now includes 'DEFAULT NULL' clauses Addresses bulk schema test failures caused by explicit DEFAULT NULL additions to keyless table schema.
1 parent e8c50a0 commit fa5bbd7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

enginetest/queries/queries.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10462,28 +10462,28 @@ var KeylessQueries = []QueryTest{
1046210462
{
1046310463
Query: "DESCRIBE keyless",
1046410464
Expected: []sql.Row{
10465-
{"c0", "bigint", "YES", "", nil, ""},
10466-
{"c1", "bigint", "YES", "", nil, ""},
10465+
{"c0", "bigint", "YES", "", "NULL", ""},
10466+
{"c1", "bigint", "YES", "", "NULL", ""},
1046710467
},
1046810468
},
1046910469
{
1047010470
Query: "SHOW COLUMNS FROM keyless",
1047110471
Expected: []sql.Row{
10472-
{"c0", "bigint", "YES", "", nil, ""},
10473-
{"c1", "bigint", "YES", "", nil, ""},
10472+
{"c0", "bigint", "YES", "", "NULL", ""},
10473+
{"c1", "bigint", "YES", "", "NULL", ""},
1047410474
},
1047510475
},
1047610476
{
1047710477
Query: "SHOW FULL COLUMNS FROM keyless",
1047810478
Expected: []sql.Row{
10479-
{"c0", "bigint", nil, "YES", "", nil, "", "", ""},
10480-
{"c1", "bigint", nil, "YES", "", nil, "", "", ""},
10479+
{"c0", "bigint", nil, "YES", "", "NULL", "", "", ""},
10480+
{"c1", "bigint", nil, "YES", "", "NULL", "", "", ""},
1048110481
},
1048210482
},
1048310483
{
1048410484
Query: "SHOW CREATE TABLE keyless",
1048510485
Expected: []sql.Row{
10486-
{"keyless", "CREATE TABLE `keyless` (\n `c0` bigint,\n `c1` bigint\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
10486+
{"keyless", "CREATE TABLE `keyless` (\n `c0` bigint DEFAULT NULL,\n `c1` bigint DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
1048710487
},
1048810488
},
1048910489
}

0 commit comments

Comments
 (0)