From: | Scott Lamb <slamb(at)slamb(dot)org> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: streaming result sets: progress |
Date: | 2002-11-14 17:46:20 |
Message-ID: | 3DD3E16C.7090604@slamb.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
nferrier(at)tapsellferrier(dot)co(dot)uk wrote:
> >I can't use it, because I haven't change query in 3pty software (btw)
> >In standard jdbc this is work :
> > Statement st = con.createStatement();
> > ResultSet rs = con.executeQuery("select * from tab");
>
>
> What do you mean "standard jdbc"?
>
> If you use the unpatched postgresql driver you have to always specify
> the ";".
I never specify the ";" and it works for me.
>
> This is different to Oracle but it isn't part of the JDBC standard.
Maybe not explicitly, but I definitely read that from the specification.
- None of the examples use semicolons.
- It's clearly intended for SQL to be portable between databases, with
the JDBC escapes, requiring drivers to support entry-level SQL-92
syntax, etc. Oracle requires statements to _not_ have semicolons at the
end. Any third-party tools will do things this way.
- JDBC is not intended for running multiple statements at one, except
through executeBatch(). And there's support for grabbing multiple result
sets from a single execution, but that's for callable statements that
have multiple ref cursors as output parameters. You definitely can't
retrieve both update counts and result sets. So without support for
multiple statements, adding statement separators is silly.
I'm really, really looking forward to your streaming result sets
(everything else in my application streams already!), but please don't
require me to do things in a way incompatible with the rest of the world
for no good reason.
Thanks,
Scott
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2002-11-14 18:32:18 | Re: streaming result sets: progress |
Previous Message | Joshua Daniel Franklin | 2002-11-14 17:14:23 | State of updatable ResultSet in jdbc drivers |