Skip to content

Commit c7502c1

Browse files
committed
add formatted sql enginetest
1 parent 297ece7 commit c7502c1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

enginetest/queries/information_schema_queries.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ var InfoSchemaQueries = []QueryTest{
3131
Expected: []sql.Row{},
3232
},
3333
{
34-
Query: "SELECT table_schema AS TABLE_CAT, NULL AS TABLE_SCHEM, table_name, CASE WHEN table_type = 'BASE TABLE' THEN CASE WHEN table_schema = 'mysql' OR table_schema = 'performance_schema' THEN 'SYSTEM TABLE' ELSE 'TABLE' END WHEN table_type = 'TEMPORARY' THEN 'LOCAL_TEMPORARY' ELSE table_type END AS TABLE_TYPE FROM information_schema.tables; ",
34+
Query: `SELECT table_schema AS TABLE_CAT,
35+
NULL AS TABLE_SCHEM,
36+
table_name,
37+
CASE WHEN table_type = 'BASE TABLE' THEN
38+
CASE WHEN table_schema = 'mysql' OR table_schema = 'performance_schema' THEN 'SYSTEM TABLE'
39+
ELSE 'TABLE' END
40+
WHEN table_type = 'TEMPORARY' THEN 'LOCAL_TEMPORARY'
41+
ELSE table_type END AS TABLE_TYPE FROM information_schema.tables;`,
3542
Expected: []sql.Row{{"information_schema", nil, "administrable_role_authorizations", "SYSTEM VIEW"}},
3643
},
3744
{

0 commit comments

Comments
 (0)