Open
Description
Problem
Hi there. A canonical error people using CrateDB through client libraries may observe is this one.
Command result: 1
XX000: line 1:1: mismatched input 'ROLLBACK' expecting {'SELECT', 'DEALLOCATE', 'FETCH', 'END', 'WITH', 'CREATE', 'ALTER', 'KILL', 'CLOSE', 'BEGIN', 'START', 'COMMIT', 'ANALYZE', 'DISCARD', 'EXPLAIN', 'SHOW', 'OPTIMIZE', 'REFRESH', 'RESTORE', 'DROP', 'INSERT', 'VALUES', 'DELETE', 'UPDATE', 'SET', 'RESET', 'COPY', 'GRANT', 'DENY', 'REVOKE', 'DECLARE'}
The general feeling on this issue is that it’s some form of automatic rollback behaviour of the Npgsql driver 1, but we can’t track down which setting this might be. It does seem that the original error is just being swallowed though, so it’s sometimes very difficult to diagnose what’s wrong with the query as a result.
Confirmation
I’ve verified that this happens with Spring Data in Java as well.
Footnotes
-
Could be any driver, see confirmation section. ↩