org.postgresql.util.PSQLException

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

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 web3117

  • ERROR: syntax error at or near "$1" Position: 45
  • via GitHub by davecramer
    , 10 months ago
    ERROR: syntax error at or near "$1" Position: 45
  • 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: 45 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2458) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2158) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:291) at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:432) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:358) at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:305) at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:291) at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:269) at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:236) at org.postgresql.test.jdbc4.JsonbTest.testJsonb(JsonbTest.java:53)

    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

    2 times, 7 months ago
    Unknown user
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 2 months ago
    2 times, 3 months ago
    91 more bugmates