Skip to content

Commit acdc902

Browse files
author
James Cor
committed
select test
1 parent 9d1b015 commit acdc902

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

enginetest/queries/view_queries.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,12 @@ CREATE TABLE tab1 (
231231
{"j", "int", "YES", "", "100", ""},
232232
},
233233
},
234+
{
235+
Query: "select * from v",
236+
Expected: []sql.Row{
237+
{1, 100},
238+
},
239+
},
234240
{
235241
Query: "show full columns from v1;",
236242
Expected: []sql.Row{
@@ -252,6 +258,12 @@ CREATE TABLE tab1 (
252258
{"jj", "bigint", "YES", "", nil, ""},
253259
},
254260
},
261+
{
262+
Query: "select * from v1",
263+
Expected: []sql.Row{
264+
{1, 110},
265+
},
266+
},
255267
{
256268
Query: "show full columns from vv;",
257269
Expected: []sql.Row{
@@ -282,6 +294,12 @@ CREATE TABLE tab1 (
282294
{"i + ii + j + jj", "bigint", "YES", "", nil, ""},
283295
},
284296
},
297+
{
298+
Query: "select * from vv",
299+
Expected: []sql.Row{
300+
{1, 1, 100, 121, 223},
301+
},
302+
},
285303
},
286304
},
287305
}

0 commit comments

Comments
 (0)