You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query: "select row1,row2 from zoo_4321 where a = b",
41
+
query: "select row1,row2 from zoo_4321 where a=b",
42
42
expErrType: nil,
43
43
},
44
44
45
45
// Allow joins and sub-queries
46
46
{
47
47
name: "with join",
48
-
query: "select * from foo_1 join bar_2 on a = b",
48
+
query: "select * from foo_1 join bar_2 on a=b",
49
49
expErrType: nil,
50
50
},
51
51
{
52
52
name: "with subselect",
53
-
query: "select * from foo_1 where a in(select b from zoo_5)",
53
+
query: "select * from foo_1 where a in(select b from zoo_5)",
54
54
expErrType: nil,
55
55
},
56
56
{
57
57
name: "column with subquery",
58
-
query: "select(select * from bar_2 limit 1)from foo_3",
58
+
query: "select(select * from bar_2 limit 1)from foo_3",
59
59
expErrType: nil,
60
60
},
61
61
{
62
62
name: "select with complex subqueries in function arguments",
63
-
query: `select json_object('name','#' || rigs.id,'external_url','https://rigs.tableland.xyz/' || rigs.id,'attributes',json_array(json_object('trait_type','Fleet','value',rigs.fleet),json_object('trait_type','Chassis','value',rigs.chassis),json_object('trait_type','Wheels','value',rigs.wheels),json_object('trait_type','Background','value',rigs.background),json_object('trait_type',(select name from badges_2 where badges.rig_id = rigs.id and position = 1 limit 1),'value',(select image from badges_2 where badges.rig_id = rigs.id and position = 1 limit 1))))from rigs_1`, // nolint
63
+
query: `select json_object('name','#'||rigs.id,'external_url','https://rigs.tableland.xyz/'||rigs.id,'attributes',json_array(json_object('trait_type','Fleet','value',rigs.fleet),json_object('trait_type','Chassis','value',rigs.chassis),json_object('trait_type','Wheels','value',rigs.wheels),json_object('trait_type','Background','value',rigs.background),json_object('trait_type',(select name from badges_2 where badges.rig_id=rigs.id and position=1 limit 1),'value',(select image from badges_2 where badges.rig_id=rigs.id and position=1 limit 1))))from rigs_1`, // nolint
0 commit comments