Skip to content

"Mismatched input ROLLBACK" instead of original SQL error #259

Open
@amotl

Description

@amotl

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

  1. Could be any driver, see confirmation section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocsA documentation issuehelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions