pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreas@visena.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Fw: mapping java objects with postgresql types
Date: Thu, 22 Jan 2015 17:13:35 +0100 (CET)
Message-ID: <VisenaEmail.43.d796fd7963c0f522.14b126b1c1e@tc7-visena> (raw)
In-Reply-To: <1171561054.5613709.1421942425167.JavaMail.yahoo@jws11173.mail.ir2.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

På torsdag 22. januar 2015 kl. 17:00:25, skrev Oussema Benjemaa <
ousema2003@yahoo.fr <mailto:ousema2003@yahoo.fr>>:    Hi,   I want to pass  
array of complex type from java into plpgsql function   I already tried using 
JDBC Array and Struct types,   but postgresql jdbc driver doesn't implement 
Struct yet so we weren't able to get thinks work   (in addition of the fact 
that. (Connection.createStruct is not implemented in postgres JDBC)   and 
actually as solution , i'm using PGObject to push the data to the database with 
some diffuclts with the syntax and this is  mainly for types composites having 
bytea datatype ..   but finally i  succeded to push data to the database with 
the usage of the  text representation of the array of the type composite .   
But i'm strongly ,  looking for an alternative of the PGObject , to avoid 
passing complex structures (array of types) from jdbc with text representation. 
    ALso i didn't found documentation for passing such as complex structures 
including the the rules for text representation of nested types .   Could you 
please advice ...   Oussema BenJemaa Senior DBA   Try 
https://github.com/impossibl/pgjdbc-ng   -- Andreas Joseph Krogh CTO / Partner 
- Visena AS Mobile: +47 909 56 963 andreas@visena.com 
<mailto:andreas@visena.com> www.visena.com <https://www.visena.com;  
<https://www.visena.com;  

view thread (8+ messages)  latest in thread

Message-ID: <VisenaEmail.43.d796fd7963c0f522.14b126b1c1e@tc7-visena>
Permalink:  ../VisenaEmail.43.d796fd7963c0f522.14b126b1c1e@tc7-visena/
Also on:    postgresql.org/message-id/VisenaEmail.43.d796fd7963c0f522.14b126b1c1e@tc7-visena

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: andreas@visena.com
  Subject: Re: Fw: mapping java objects with postgresql types
  In-Reply-To: <VisenaEmail.43.d796fd7963c0f522.14b126b1c1e@tc7-visena>
  References: <1171561054.5613709.1421942425167.JavaMail.yahoo@jws11173.mail.ir2.yahoo.com> <VisenaEmail.43.d796fd7963c0f522.14b126b1c1e@tc7-visena>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox