We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following update statement produces an error, although legal in sqlite3:
update_test.go:33: failed: 8:8: expected semicolon or EOF, found ndx
code
func TestUpdate(t *testing.T) { s := `UPDATE asynq_tasks SET state='active', pending_since=NULL, affinity_timeout=server_affinity, deadline=iif(task_deadline=0, task_timeout+1687276020, task_deadline) WHERE asynq_tasks.state='pending' AND (task_uuid, ndx, pndx, task_msg, task_timeout, task_deadline)= (SELECT task_uuid, ndx, pndx, task_msg, task_timeout, task_deadline FROM asynq_tasks) ` stmt, err := sql.NewParser(strings.NewReader(s)).ParseStatement() if err != nil { t.Fatalf("failed: %v", err) } _, ok := stmt.(*sql.UpdateStatement) if !ok { t.Fatalf("failed: expected UpdateStatement") } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following update statement produces an error, although legal in sqlite3:
code
The text was updated successfully, but these errors were encountered: