pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Some question about statement
4+ messages / 3 participants
[nested] [flat]

* Some question about statement
@ 2015-11-30 03:31  张元超 <zhangyuanchao@highgo.com>
  0 siblings, 0 replies; 4+ messages in thread

From: 张元超 @ 2015-11-30 03:31 UTC (permalink / raw)
  To: pgsql-jdbc

Hi,
         I have question about statement.Some method that provided by JAVA API were not implemented in postgresql jdbc.
I focus on method named ‘setCharacterStream(int parameterIndex, Reader value, long length)’,it was not implemented,but
‘setCharacterStream(int i, java.io.Reader x, int length)’ was implemented.The different between them is the type of the third
parameter. I don’t know why the first method was not implement,because the column can not store the ‘value’ whoes length
is the ‘length’? Or other reason? Thank you.


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

* Some question about statement
@ 2015-11-30 05:06  张元超 <zhangyuanchao@highgo.com>
  0 siblings, 1 reply; 4+ messages in thread

From: 张元超 @ 2015-11-30 05:06 UTC (permalink / raw)
  To: pgsql-jdbc

Hi,
         I have question about statement.Some method that provided by JAVA API were not implemented in postgresql jdbc.
I focus on method named ‘setCharacterStream(int parameterIndex, Reader value, long length)’,it was not implemented,but
‘setCharacterStream(int i, java.io.Reader x, int length)’ was implemented.The different between them is the type of the third
parameter. I don’t know why the first method was not implement,because the column can not store the ‘value’ whoes length
is the ‘length’? Or other reason? Thank you.



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

* Re: Some question about statement
@ 2015-11-30 06:28  Daniel Blanch Bataller <dblanch@hoplasoftware.com>
  parent: 张元超 <zhangyuanchao@highgo.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Daniel Blanch Bataller @ 2015-11-30 06:28 UTC (permalink / raw)
  To: 张元超 <zhangyuanchao@highgo.com>; +Cc: pgsql-jdbc

Hi,

I guess its simply because String fields in postgres can not be larger than 1 GB, long type could represent length values far beyond this limit surpassing postgres limits.

-Daniel



> El 30 nov 2015, a las 6:06, 张元超 <zhangyuanchao@highgo.com> escribió:
> 
> Hi,
>          I have question about statement.Some method that provided by JAVA API were not implemented in postgresql jdbc.
> I focus on method named ‘setCharacterStream(int parameterIndex, Reader value, long length)’,it was not implemented,but
> ‘setCharacterStream(int i, java.io.Reader x, int length)’ was implemented.The different between them is the type of the third
> parameter. I don’t know why the first method was not implement,because the column can not store the ‘value’ whoes length
> is the ‘length’? Or other reason? Thank you.

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

* Re: Some question about statement
@ 2015-11-30 06:30  Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  parent: Daniel Blanch Bataller <dblanch@hoplasoftware.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Vladimir Sitnikov @ 2015-11-30 06:30 UTC (permalink / raw)
  To: Daniel Blanch Bataller <dblanch@hoplasoftware.com>; +Cc: 张元超 <zhangyuanchao@highgo.com>; pgsql-jdbc

I think `long` method just check bounds and delegate to int one.

Vladimir


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



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


end of thread, other threads:[~2015-11-30 06:30 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-11-30 03:31 Some question about statement 张元超 <zhangyuanchao@highgo.com>
2015-11-30 05:06 Some question about statement 张元超 <zhangyuanchao@highgo.com>
2015-11-30 06:28 ` Daniel Blanch Bataller <dblanch@hoplasoftware.com>
2015-11-30 06:30   ` Vladimir Sitnikov <sitnikov.vladimir@gmail.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