Hallo Alle,
Ich möchte in Java mit JDBC PostgreSQL benutzen. PostgreSQL 9.1 lauft an Windows als Teil eines Bitnami Wappstack Installation. Connection ist elforgleich mit JDBC URL
Code:
jdbc:postgresql://10.0.8.59:5432:drupal
aber Select lauft nicht. Zum beispiel
Code:
select th_za,teljes_cim,google_cim,lon,lat,result,lekerdezes_dat from hatha where teljes_cim is not null and lat is null
gibt
Exception in thread "main" org.postgresql.util.PSQLException: ERROR: relation "hatha" does not exist
Position: 71
at org.postgresql.core.v3.QueryExecutorImpl.receiveEr rorResponse(QueryExecutorImpl.java:2103)
at org.postgresql.core.v3.QueryExecutorImpl.processRe sults(QueryExecutorImpl.java:1836)
at org.postgresql.core.v3.QueryExecutorImpl.execute(Q ueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execut e(AbstractJdbc2Statement.java:512)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execut eWithFlags(AbstractJdbc2Statement.java:374)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execut eQuery(AbstractJdbc2Statement.java:254)
at hu.flexisys.geocoding.Process.feldolgoz(Process.ja va:101)
at hu.flexisys.geocoding.Process.main(Process.java:14 5)
In Log finde ich
ERROR: relation "hatha" does not exist at character 71
STATEMENT: select th_za,teljes_cim,google_cim,lon,lat,result,lekerde zes_dat from hatha where teljes_cim is not null and lat is null
und wenn ich kopiere dieses Statement in psql, es lauft in Ordnung. Wie möglicht es?
danke Voraus, Mfg: Balázs Bámer
Lesezeichen