@@ -200,30 +200,22 @@ func TestSingleQueryPrepared(t *testing.T) {
200200
201201// Convenience test for debugging a single query. Unskip and set to the desired query.
202202func TestSingleScript (t * testing.T ) {
203- // t.Skip()
203+ t .Skip ()
204204 var scripts = []queries.ScriptTest {
205205 {
206- Name : "test" ,
207- SetUpScript : []string {
208- "create table t1 (i int primary key);" ,
209- "create table t2 (j int);" ,
210- "create table t3 (k int);" ,
211- "insert into t1 values (1), (2);" ,
212- "insert into t2 values (1), (2);" ,
213- "insert into t3 values (3);" ,
214- },
206+ Name : "AS OF propagates to nested CALLs" ,
207+ SetUpScript : []string {},
215208 Assertions : []queries.ScriptTestAssertion {
216209 {
217- Query : "select * from t1 cross join t2 join (select * from t3) v3 on v3.k = t2.j;" ,
218- Expected : []sql.Row {},
210+ Query : "create procedure create_proc() create table t (i int primary key, j int);" ,
211+ Expected : []sql.Row {
212+ {types .NewOkResult (0 )},
213+ },
219214 },
220215 {
221- Query : "select * from t1 cross join t2 join (select * from t3) v3 on v3.k >= t2.j order by i, j, k; " ,
216+ Query : "call create_proc() " ,
222217 Expected : []sql.Row {
223- {1 , 1 , 3 },
224- {1 , 2 , 3 },
225- {2 , 1 , 3 },
226- {2 , 2 , 3 },
218+ {types .NewOkResult (0 )},
227219 },
228220 },
229221 },
@@ -238,8 +230,8 @@ func TestSingleScript(t *testing.T) {
238230 panic (err )
239231 }
240232
241- engine .EngineAnalyzer ().Debug = true
242- engine .EngineAnalyzer ().Verbose = true
233+ // engine.EngineAnalyzer().Debug = true
234+ // engine.EngineAnalyzer().Verbose = true
243235
244236 enginetest .TestScriptWithEngine (t , engine , harness , test )
245237 }
0 commit comments