Apache OpenOffice (AOO) Bugzilla – Issue 114280
PostreSQL subforms broken with ODBC, JDBC
Last modified: 2010-11-19 12:59:10 UTC
Subforms do not work with PostgreSQL in OOo 3.2.1 using ODBC or JDBC - the subform does not show any records and it is impossible to edit information in the subform table grid. This occurs on Mac and Windows.
@peterdines Which version of Postgres are you connecting up to? Also, I'm changing the priority on this down to a P3 for the moment, as it A) Looks like the same issue found in another connector and already fixed. I don't have a Postgres server that I can connect to at the moment, but will reset things tomorrow and bring one up. Will check both 3.2.1 and the 3.3 developer release at that time.
This was with both the 9.0 rc1 and 8.4.4 stable versions. Thanks for looking into this so promptly!
As per a user comment on a forum, I verified that PostreSQL JDBC subforms DO work properly in OOo 3.1.1
Same flaw affects H2 database with JDBC - cannot display, edit or add subform data with OOo 3.2.1
Tried Postgres with JDBC and the OOo 3.3 beta on Windows - here's the error message (at least there WAS an error message this time!) The data content could not be loaded. SQL Status: 22023 The column index is out of range: 1, number of columns: 0. The SQL command leading to this error is: SELECT * FROM "public"."orderdetails" WHERE ( "orderid" = :link_from_orderid )
Sort of resolved - I fixed it by going into advanced JDBC connection settings in Base and ticking "replace named parameters with '?' ". It appears that version 3.1.1 had this set by default, which is why it didn't exhibit this problem. Ticking the control fixes the subform issue with Postgres and H2. I recommend that the default be changed back in future releases.
Possibly this is duplicate of issue 113632 *** This issue has been marked as a duplicate of 113631 ***
Duplicate -> Closing.