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
FROM task_instance INNER JOIN job ON job.id = task_instance.queued_by_job_id INNER JOIN dag_run ON dag_run.dag_id = task_instance.dag_id AND dag_run.run_id = task_instance.run_id
222
+
WHERE task_instance.state IN ('running', 'queued', 'scheduled') AND NOT (job.state <=> 'running') AND dag_run.state = 'running' FOR UPDATE OF task_instance SKIP LOCKED`,
223
+
Expected: []sql.Row{},
214
224
},
215
225
{
216
-
Query: "call create_proc()",
217
-
Expected: []sql.Row{
218
-
{types.NewOkResult(0)},
219
-
},
226
+
Query: "SELECT * FROM t FOR UPDATE",
227
+
Expected: []sql.Row{{1, "test"}},
228
+
},
229
+
{
230
+
Query: "SELECT * FROM t FOR UPDATE OF t",
231
+
Expected: []sql.Row{{1, "test"}},
232
+
},
233
+
{
234
+
Query: "SELECT * FROM t FOR UPDATE OF t SKIP LOCKED",
235
+
Expected: []sql.Row{{1, "test"}},
236
+
},
237
+
{
238
+
Query: "SELECT * FROM t FOR UPDATE OF t NOWAIT",
239
+
Expected: []sql.Row{{1, "test"}},
240
+
},
241
+
{
242
+
Query: "SELECT * FROM task_instance t1, job t2 FOR UPDATE OF t1, t2",
0 commit comments