pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
select count(*)
4+ messages / 2 participants
[nested] [flat]

* select count(*)
@ 2004-08-10 16:22  Karol Szkudlarek <karol@mikronika.com.pl>
  0 siblings, 1 reply; 4+ messages in thread

From: Karol Szkudlarek @ 2004-08-10 16:22 UTC (permalink / raw)
  To: pgsql-odbc

Hi!

After compiling and installing cvs-tree psqlodbc driver I can't
do:
*) select count(*) from tablename.

where tablename is any table name;

Beacuse it returns error:
MSG= The cursor is open.;
Unrecognized key passed to SQLGetInfo30.
ERR=3
SQLSTATE=HY010


When I am using an old psqlodbc driver which comes from unixodbc (2.2.9)
statement *) runs ok. What is wrong?! Any help apreciated.

Greets,
Karol Szkudlarek




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

* Re: select count(*)
@ 2004-08-11 06:48  Peter Eisentraut <peter_e@gmx.net>
  parent: Karol Szkudlarek <karol@mikronika.com.pl>
  0 siblings, 1 reply; 4+ messages in thread

From: Peter Eisentraut @ 2004-08-11 06:48 UTC (permalink / raw)
  To: karol@mikronika.com.pl; pgsql-odbc

Karol Szkudlarek wrote:
> Hi!
>
> After compiling and installing cvs-tree psqlodbc driver I can't
> do:
> *) select count(*) from tablename.
>
> where tablename is any table name;
>
> Beacuse it returns error:
> MSG= The cursor is open.;
> Unrecognized key passed to SQLGetInfo30.
> ERR=3
> SQLSTATE=HY010

Works for me (tm):

$ isql pgtest
[...]
SQL> select count(*) from pg_class;
+---------------------+
| count               |
+---------------------+
| 180                 |
+---------------------+
1 rows affected
1 rows returned

Is this possibly another 64-bit issue?  Are you still running on amd64?

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/




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

* Re: select count(*)
@ 2004-08-11 11:47  Karol Szkudlarek <karol@mikronika.com.pl>
  parent: Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Karol Szkudlarek @ 2004-08-11 11:47 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-odbc

Peter Eisentraut wrote:

>Karol Szkudlarek wrote:
>  
>
>>Hi!
>>
>>After compiling and installing cvs-tree psqlodbc driver I can't
>>do:
>>*) select count(*) from tablename.
>>
>>where tablename is any table name;
>>
>>Beacuse it returns error:
>>MSG= The cursor is open.;
>>Unrecognized key passed to SQLGetInfo30.
>>ERR=3
>>SQLSTATE=HY010
>>    
>>
>
>Works for me (tm):
>
>$ isql pgtest
>[...]
>SQL> select count(*) from pg_class;
>+---------------------+
>| count               |
>+---------------------+
>| 180                 |
>+---------------------+
>1 rows affected
>1 rows returned
>
>Is this possibly another 64-bit issue?  Are you still running on amd64?
>
>  
>
Hi!

Also for me statement *) from isql works ok. But from my project it 
doesn't.
Maybe I should prepare simple test case?

I got error on my home AMD 2000XP (32-bit) platform (amd64 I have at 
work.. :-))
And I didn't tested *) with cvs-tree psqlodbc driver at work computer yet.

Greets, Karol






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

* Re: select count(*)
@ 2004-08-11 13:36  Peter Eisentraut <peter_e@gmx.net>
  parent: Karol Szkudlarek <karol@mikronika.com.pl>
  0 siblings, 0 replies; 4+ messages in thread

From: Peter Eisentraut @ 2004-08-11 13:36 UTC (permalink / raw)
  To: karol@mikronika.com.pl; +Cc: pgsql-odbc

Am Mittwoch, 11. August 2004 13:47 schrieb Karol Szkudlarek:
> Also for me statement *) from isql works ok. But from my project it
> doesn't.
> Maybe I should prepare simple test case?

That would be advisable.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



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


end of thread, other threads:[~2004-08-11 13:36 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-08-10 16:22 select count(*) Karol Szkudlarek <karol@mikronika.com.pl>
2004-08-11 06:48 ` Peter Eisentraut <peter_e@gmx.net>
2004-08-11 11:47   ` Karol Szkudlarek <karol@mikronika.com.pl>
2004-08-11 13:36     ` Peter Eisentraut <peter_e@gmx.net>

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