@@ -200,37 +200,23 @@ 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- // https://github.com/dolthub/dolt/issues/10113
207- Name : "DELETE with NOT EXISTS subquery" ,
208- SetUpScript : []string {
209- `CREATE TABLE IF NOT EXISTS student (
210- id BIGINT AUTO_INCREMENT,
211- name VARCHAR(50) NOT NULL,
212- PRIMARY KEY (id)
213- );` ,
214- `CREATE TABLE IF NOT EXISTS student_hobby (
215- id BIGINT AUTO_INCREMENT,
216- student_id BIGINT NOT NULL,
217- hobby VARCHAR(50) NOT NULL,
218- PRIMARY KEY (id)
219- );` ,
220- "INSERT INTO student (id, name) VALUES (1, 'test1');" ,
221- "INSERT INTO student (id, name) VALUES (2, 'test2');" ,
222- "INSERT INTO student_hobby (id, student_id, hobby) VALUES (1, 1, 'test1');" ,
223- "INSERT INTO student_hobby (id, student_id, hobby) VALUES (2, 2, 'test2');" ,
224- "INSERT INTO student_hobby (id, student_id, hobby) VALUES (3, 100, 'test3');" ,
225- "INSERT INTO student_hobby (id, student_id, hobby) VALUES (4, 100, 'test3');" ,
226- },
206+ Name : "AS OF propagates to nested CALLs" ,
207+ SetUpScript : []string {},
227208 Assertions : []queries.ScriptTestAssertion {
228209 {
229- Query : "delete from student_hobby where not exists (select 1 from student where student.id = student_hobby.student_id);" ,
210+ Query : "create procedure create_proc() create table t (i int primary key, j int);" ,
211+ Expected : []sql.Row {
212+ {types .NewOkResult (0 )},
213+ },
230214 },
231215 {
232- Query : "SELECT * FROM student_hobby ORDER BY id;" ,
233- Expected : []sql.Row {{1 , 1 , "test1" }, {2 , 2 , "test2" }},
216+ Query : "call create_proc()" ,
217+ Expected : []sql.Row {
218+ {types .NewOkResult (0 )},
219+ },
234220 },
235221 },
236222 },
0 commit comments