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
Describe the bug
We have the following sql statement
SELECTmytable.id, mytable.other_idFROM mytable
WHERE (mytable.status= %s
OR (mytable.counter< (mytable.max_counter)
ANDmytable.next_attempt_at<= (STATEMENT_TIMESTAMP())
ANDmytable.status= %s))
ORDER BYmytable.next_attempt_atASC NULLS FIRST, mytable.createdASCLIMIT10
FOR NO KEY
UPDATE OF mytable SKIP LOCKED
Our django application then throws
cannot execute SELECT FOR NO KEY UPDATE in a read-only transaction
From a high level view it seems like an error with the query parser.
The text was updated successfully, but these errors were encountered:
Until it's fixed, in order to avoid this, your options are:
Turn off query parser
Or SET SERVER ROLE TO 'primary' in your transaction/session
If it's not a query parser error, then it's just that the sqlparser crate that pgcat uses just didnt parse your query correctly. You can submit improvements here: https://github.com/apache/datafusion-sqlparser-rs
Describe the bug
We have the following sql statement
Our django application then throws
From a high level view it seems like an error with the query parser.
The text was updated successfully, but these errors were encountered: