org.postgresql.util.PSQLException

ERROR: syntax error at or near "$1" Position: 12

Samebug tips1

Try downgrading PostgresSQL server to 9.5 or update your PostgresSQL driver to 9.4-1211 with the following command: <postgresql.version>9.4.1211</postgresql.version>

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3120

  • via java.net by Unknown author, 1 year ago
    ERROR: syntax error at or near "$1" Position: 12
  • via Google Groups by Gustavo Bilert, 6 months ago
    ERROR: syntax error at or near "testmigration" Position: 12
  • via Google Groups by Eoin O'Hehir, 1 month ago
    ERROR: syntax error at or near "$1" Position: 1
  • Stack trace

    • org.postgresql.util.PSQLException: ERROR: syntax error at or near "$1" Position: 12 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2157) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1886) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:555) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:417) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:363) at test.Main.main(Main.java:21)[2]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    2 times, 1 month ago
    25 times, 7 months ago
    92 more bugmates