pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Fernando Hartmann <fh@sadig.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Num of returned ROWS
Date: Wed, 08 Jun 2005 08:38:38 -0300
Message-ID: <d86l4d$45u$1@sea.gmane.org> (raw)
In-Reply-To: <42A62275.2020900@opencloud.com>
References: <d84t1f$pj1$1@sea.gmane.org>
<42A62275.2020900@opencloud.com>
Oliver Jowett wrote:
> Fernando Hartmann wrote:
>
>
>> I'm using Postgres 8.0.3 and JDBC build 311 (tried 400 too) and
>>using executeUpdate to send the following command to DB:
>>
>>set datestyle to ISO,DMY;
>>create table table1 as select F1, sum(F10) from table where F1 between
>>'1/1/2001' and '31/12/2004' group by F1;
>>select count(*) from table1
>>
>> But the executeUpdate always return 0, even when the cont(*) return
>>a number other than 0.
>>
>> Any ideas ?
>
>
> The backend doesn't return the number of rows affected for a CREATE
> TABLE .. AS, so the driver can't give you a useful number.
>
> -O
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
Ok, but and the last line ? The select count ? They don't return the
number of rows too!
view thread (5+ messages) latest in thread
Message-ID: <d86l4d$45u$1@sea.gmane.org> Permalink: ../d86l4d$45u$1@sea.gmane.org/ Also on: postgresql.org/message-id/d86l4d$45u$1@sea.gmane.org ·
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: fh@sadig.com Subject: Re: Num of returned ROWS In-Reply-To: <d86l4d$45u$1@sea.gmane.org> References: <d84t1f$pj1$1@sea.gmane.org> <42A62275.2020900@opencloud.com> <d86l4d$45u$1@sea.gmane.org> * 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