mirror of
https://github.com/postgres/postgres.git
synced 2025-12-07 12:02:30 +03:00
This patch fixes a couple of minor bugs:
1) DatabaseMetaData.getPrimaryKeys() would fail saying that there is no table t. 2) PreparedStatement.getObject() was missing some break statements, which was causing updates not to work with JBuilder (supplied by Aaron Dunlop). jdbc fixes from Peter.
This commit is contained in:
@@ -2121,7 +2121,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
|
||||
"ic.relname AS COLUMN_NAME," +
|
||||
"'1' as KEY_SEQ,"+ // -- fake it as a String for now
|
||||
"t.typname as PK_NAME " +
|
||||
" FROM pg_class bc, pg_class ic, pg_index i, pg_attribute a " +
|
||||
" FROM pg_class bc, pg_class ic, pg_index i, pg_attribute a, pg_type t " +
|
||||
" WHERE relkind = 'r' " + // -- not indices
|
||||
" and bc.relname ~ '"+table+"'" +
|
||||
" and i.indrelid = bc.oid" +
|
||||
|
||||
Reference in New Issue
Block a user