pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Tom Dunstan <pgsql@tomd.cc>
To: Andreas Joseph Krogh <andreak@officenet.no>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Will Connection.createBlob be implemented any time soon?
Date: Tue, 28 Jan 2014 10:19:30 +0100
Message-ID: <52E77622.3090101@redhat.com> (raw)
In-Reply-To: <CAPPfruzdcc096agROAaveNo_9XAvRcbZOD1ULB9sLNse=QkGYA@mail.gmail.com>
References: <lbgk12$252$1@ger.gmane.org>
	<OfficeNetEmail.42.f72b9f7033d07cda.143aaba04c0@prod2>
	<CAPPfruzdcc096agROAaveNo_9XAvRcbZOD1ULB9sLNse=QkGYA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

On 01/28/2014 02:40 AM, Tom Dunstan wrote:

> I was under the impression that most JPA implementations will allow
> you to stick a byte[] as your property type and will handle the rest
> under the good (usually using the blob support in PreparedStatement).

If I recall correctly, you need to special-case byte[], otherwise it 
will be turned into a PostgreSQL array type (probably "int array").

-- 
Florian Weimer / Red Hat Product Security Team


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (18+ messages)  latest in thread

Message-ID: <52E77622.3090101@redhat.com>
Permalink:  ../52E77622.3090101@redhat.com/
Also on:    postgresql.org/message-id/52E77622.3090101@redhat.com

 · 

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: fweimer@redhat.com, pgsql@tomd.cc, andreak@officenet.no
  Subject: Re: Will Connection.createBlob be implemented any time soon?
  In-Reply-To: <52E77622.3090101@redhat.com>
  References: <lbgk12$252$1@ger.gmane.org> <OfficeNetEmail.42.f72b9f7033d07cda.143aaba04c0@prod2> <CAPPfruzdcc096agROAaveNo_9XAvRcbZOD1ULB9sLNse=QkGYA@mail.gmail.com> <52E77622.3090101@redhat.com>

* 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