Re: Question about passing array of a complex type from jdbc to plpgsql - Mailing list pgsql-jdbc

From Maciek Sakrejda
Subject Re: Question about passing array of a complex type from jdbc to plpgsql
Date
Msg-id CAH_hXRYu6KKoTWB4aGVeFTC9X+BPL8wNaGC8OR52Xd_0edA=7w@mail.gmail.com
Whole thread Raw
In response to Question about passing array of a complex type from jdbc to plpgsql  (Vaclav Tvrdik <tvrdik@i3.cz>)
List pgsql-jdbc
I've worked with arrays of UDTs a bit in the past, and have encoded
them to text and cast on the query side. This isn't exactly pretty,
but it works fine. Arrays have one set of syntax rules, UDTs a
slightly different set, and then you need to take into account
standard_conforming_strings (or at least work with the setting of
standard_conforming_strings that you expect, if you know it will be
consistent). Don't think about standard_conforming_strings until the
very last step--this keeps things simpler and should let you nest UDTs
and arrays arbitrarily deep. I can't find the relevant documentation
with a quick search, but if you point out what you think is
inconsistent maybe I can help explain.
---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com

pgsql-jdbc by date:

Previous
From: Radosław Smogura
Date:
Subject: Re: Possible oversight in org.postgresql.xa.PGXAConnection.commitPrepared(Xid xid)
Next
From: Heikki Linnakangas
Date:
Subject: Re: Possible oversight in org.postgresql.xa.PGXAConnection.commitPrepared(Xid xid)