Support for WITH Queries (Common Table Expressions)
От | Ravi Rangaswamy |
---|---|
Тема | Support for WITH Queries (Common Table Expressions) |
Дата | |
Msg-id | 5746076F.6040403@gobalto.com обсуждение исходный текст |
Ответы |
Re: Support for WITH Queries (Common Table Expressions)
Re: Support for WITH Queries (Common Table Expressions) |
Список | pgsql-jdbc |
Hi,
Does the PostgreSQL JDBC driver support WITH Queries (Common Table Expressions)? When I execute the query using Statement.executeQuery(sql), I get an error an error "syntax error at end of input". I tried with the sample query listed in the PostgreSQL documentation of CTEs and still get the same error.
Version used:
postgresql-9.4-1205.jdbc4
Exception:
org.postgresql.util.PSQLException: ERROR: syntax error at end of input
Position: 189
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2182)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1911)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:173)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:645)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:481)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:361)
Regards,
Ravi
Does the PostgreSQL JDBC driver support WITH Queries (Common Table Expressions)? When I execute the query using Statement.executeQuery(sql), I get an error an error "syntax error at end of input". I tried with the sample query listed in the PostgreSQL documentation of CTEs and still get the same error.
Version used:
postgresql-9.4-1205.jdbc4
Exception:
org.postgresql.util.PSQLException: ERROR: syntax error at end of input
Position: 189
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2182)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1911)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:173)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:645)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:481)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:361)
Regards,
Ravi
В списке pgsql-jdbc по дате отправления: