[teiid-issues] [JBoss JIRA] (TEIID-5431) Function postgis_full_version() does not exist; Transaction Fails

Ramesh Reddy (JIRA) issues at jboss.org
Tue Jul 24 16:02:00 EDT 2018


Ramesh Reddy created TEIID-5431:
-----------------------------------

             Summary: Function postgis_full_version() does not exist; Transaction Fails
                 Key: TEIID-5431
                 URL: https://issues.jboss.org/browse/TEIID-5431
             Project: Teiid
          Issue Type: Bug
          Components: JDBC Connector
    Affects Versions: 11.0
            Reporter: Ramesh Reddy
            Assignee: Steven Hawkins


Within a XA transaction, when Teiid tries to do "initCapabilities" on Postgresql JDBC connector, it issues a function call "select postgis_full_version()" to detect the postgis version. However, if the postgis is not installed, then this fails. 

The undesired side effect is, the query already started a transaction then the whole transaction is rolled back.

{code}
Caused by: org.postgresql.util.PSQLException: ERROR: function postgis_full_version() does not exist
  Hint: No function matches the given name and argument types. You might need to add explicit type casts.
  Position: 8
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2455) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2155) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:288) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:430) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:356) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:303) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
	at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:289) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:266) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
	at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:233) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_161]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_161]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_161]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_161]
	at org.postgresql.ds.PGPooledConnection$StatementHandler.invoke(PGPooledConnection.java:423) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
	at com.sun.proxy.$Proxy90.executeQuery(Unknown Source) ~[na:na]
	at org.teiid.translator.jdbc.postgresql.PostgreSQLExecutionFactory.initCapabilities(PostgreSQLExecutionFactory.java:324) ~[translator-jdbc-11.1.0-SNAPSHOT.jar!/:11.1.0-SNAPSHOT]
	at org.teiid.translator.jdbc.postgresql.PostgreSQLExecutionFactory.initCapabilities(PostgreSQLExecutionFactory.java:72) ~[translator-jdbc-11.1.0-SNAPSHOT.jar!/:11.1.0-SNAPSHOT]
{code}




--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the teiid-issues mailing list