pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
setObject(col, blob) throws PSQLException
5+ messages / 2 participants
[nested] [flat]

* setObject(col, blob) throws PSQLException
@ 2005-09-29 09:57  Marc Herbert <Marc.Herbert@emicnetworks.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Marc Herbert @ 2005-09-29 09:57 UTC (permalink / raw)
  To: pgsql-jdbc


So does setObject(col, blob, Types.Blob).

Whereas setBlob(col, blob) works fine in the same test case.

This case is like missing in the big switch found in the code.
Is this on purpose?




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: setObject(col, blob) throws PSQLException
@ 2005-09-29 16:57  Kris Jurka <books@ejurka.com>
  parent: Marc Herbert <Marc.Herbert@emicnetworks.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Kris Jurka @ 2005-09-29 16:57 UTC (permalink / raw)
  To: Marc Herbert <Marc.Herbert@emicnetworks.com>; +Cc: pgsql-jdbc



On Thu, 29 Sep 2005, Marc Herbert wrote:

> So does setObject(col, blob, Types.Blob).
>
> Whereas setBlob(col, blob) works fine in the same test case.
>
> This case is like missing in the big switch found in the code.
> Is this on purpose?

No, that's an oversight which I'll fix.  Perhaps we were concerned about 
trying to do a conversion for something like setObject(col, "string data", 
Types.BLOB)?

Kris Jurka




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: setObject(col, blob) throws PSQLException
@ 2005-09-29 21:14  Kris Jurka <books@ejurka.com>
  parent: Marc Herbert <Marc.Herbert@emicnetworks.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Kris Jurka @ 2005-09-29 21:14 UTC (permalink / raw)
  To: Marc Herbert <Marc.Herbert@emicnetworks.com>; +Cc: pgsql-jdbc



On Thu, 29 Sep 2005, Marc Herbert wrote:

> [setObject(col, blob, Types.Blob) throw Exception]
>

I've commited a fix to cvs for both the 8.0 and 8.1 branches.  Types.CLOB 
and Types.ARRAY also suffered the same problem.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: setObject(col, blob) throws PSQLException
@ 2005-10-03 09:34  Marc Herbert <Marc.Herbert@emicnetworks.com>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Marc Herbert @ 2005-10-03 09:34 UTC (permalink / raw)
  To: pgsql-jdbc

Kris Jurka <books@ejurka.com> writes:

> On Thu, 29 Sep 2005, Marc Herbert wrote:
>
>> [setObject(col, blob, Types.Blob) throw Exception]
>>
>
> I've commited a fix to cvs for both the 8.0 and 8.1 branches.
> Types.CLOB and Types.ARRAY also suffered the same problem.
>

I just had a look at it (did not try it yet) and it seems you fixed:

  setObject(int parameterIndex, Object x)

But not:

  setObject(int parameterIndex, Object x, int targetSqlType)


Am I missing something ? (besides an actual test :-/









^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: setObject(col, blob) throws PSQLException
@ 2005-10-03 17:29  Kris Jurka <books@ejurka.com>
  parent: Marc Herbert <Marc.Herbert@emicnetworks.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Kris Jurka @ 2005-10-03 17:29 UTC (permalink / raw)
  To: Marc Herbert <Marc.Herbert@emicnetworks.com>; +Cc: pgsql-jdbc



On Mon, 3 Oct 2005, Marc Herbert wrote:

> I just had a look at it (did not try it yet) and it seems you fixed:
>
>  setObject(int parameterIndex, Object x)
>
> But not:
>
>  setObject(int parameterIndex, Object x, int targetSqlType)
>

Actually I did it the other way around, I fixed setObject(int, Object, 
int), but not setObject(int, Object).  I've fixed this now as well.

Kris Jurka




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2005-10-03 17:29 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-09-29 09:57 setObject(col, blob) throws PSQLException Marc Herbert <Marc.Herbert@emicnetworks.com>
2005-09-29 16:57 ` Kris Jurka <books@ejurka.com>
2005-09-29 21:14 ` Kris Jurka <books@ejurka.com>
2005-10-03 09:34   ` Marc Herbert <Marc.Herbert@emicnetworks.com>
2005-10-03 17:29     ` Kris Jurka <books@ejurka.com>

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