You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Currently when using INSERT ... RETURNING, UPDATE ... RETURNING, DELETE ... RETURNING one needs to explicitly specify the columns to be returned. It would be great if this could be extended to return all columns, eg by specifying RETURNING * (similar to what PostgreSQL has: http://www.postgresql.org/docs/current/static/sql-insert.html ).
Rationale for this:
The JDBC specification provides for functionality to automatically retrieve generated keys for statements (see http://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String,%20int) ). As it is impossible to find out which column(s) are auto-generated in Firebird, Jaybird 2.2 will simply return all columns of a table. However, to be able to do that I need to query the table metadata which adds additional overhead (eg server roundtrips).
Being able to simply specify RETURNING * would cut out that overhead and would simplify the driver side.
Submitted by: @mrotteveel
Block progress on JDBC570
Currently when using INSERT ... RETURNING, UPDATE ... RETURNING, DELETE ... RETURNING one needs to explicitly specify the columns to be returned. It would be great if this could be extended to return all columns, eg by specifying RETURNING * (similar to what PostgreSQL has: http://www.postgresql.org/docs/current/static/sql-insert.html ).
Rationale for this:
The JDBC specification provides for functionality to automatically retrieve generated keys for statements (see http://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String,%20int) ). As it is impossible to find out which column(s) are auto-generated in Firebird, Jaybird 2.2 will simply return all columns of a table. However, to be able to do that I need to query the table metadata which adds additional overhead (eg server roundtrips).
Being able to simply specify RETURNING * would cut out that overhead and would simplify the driver side.
Commits: 558c691 21ca22f
The text was updated successfully, but these errors were encountered: