pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedODBC Behavior, where do I find help?
4+ messages / 3 participants
[nested] [flat]
* ODBC Behavior, where do I find help?
@ 2003-04-28 21:37 Jon V <jon@cecorp.com>
0 siblings, 1 reply; 4+ messages in thread
From: Jon V @ 2003-04-28 21:37 UTC (permalink / raw)
To: pgsql-odbc
Hello all,
I'm sure this is a pretty basic misunderstanding or misapplication on my
part. I'm hoping one of you can set me straight.
I'm running PostgreSQL 7.3.2 under Cygwin. Running ODBC 7.01.00.10 (as
displayed in the ODBC Data Source Administrator Driver tab), my
application works fine. However, if I install any of the 7.02 ODBC
drivers, my application fails.
We've traced the cause of the failure, and it has me scratching my head.
Using our application OR PgAdminII, I run the following:
begin;
select * from table_name
end
With 7.1 ODBC I get a result (in PgAdminII a table pops up on the
screen, in our app we get the results of the query). With 7.2 I get a
"query completed successfully" (status) message. The same thing happens
when I run an SQL function we've written that passes a cursor back --
7.1 returns the result, 7.2 returns a status.
I assume I must be doing something wrong because if it was really broken
then nobody could use 7.2, and the latest versions of PgAdmin are quite
forceful about automatically installing the 7.2 drivers if they aren't
present.
Where should I look?
TIA,
Jon
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: ODBC Behavior, where do I find help?
@ 2003-04-28 22:22 Wayne Armstrong <wdarmst@bacchus.com.au>
parent: Jon V <jon@cecorp.com>
0 siblings, 1 reply; 4+ messages in thread
From: Wayne Armstrong @ 2003-04-28 22:22 UTC (permalink / raw)
To: Jon V <jon@cecorp.com>; pgsql-odbc
** Reply to message from Jon V <jon@cecorp.com> on Mon, 28 Apr 2003 14:37:05
-0700
Hi,
Try it without the begin and end;
What you are seeing is the result of the last executed statement (end; )
I don't know if this represents a change in the odbc driver - but it is
behaviour that seems reasonable to me :)
Regards,
Wayne
> Hello all,
>
> I'm sure this is a pretty basic misunderstanding or misapplication on my
> part. I'm hoping one of you can set me straight.
> I'm running PostgreSQL 7.3.2 under Cygwin. Running ODBC 7.01.00.10 (as
> displayed in the ODBC Data Source Administrator Driver tab), my
> application works fine. However, if I install any of the 7.02 ODBC
> drivers, my application fails.
>
> We've traced the cause of the failure, and it has me scratching my head.
> Using our application OR PgAdminII, I run the following:
>
> begin;
> select * from table_name
> end
>
> With 7.1 ODBC I get a result (in PgAdminII a table pops up on the
> screen, in our app we get the results of the query). With 7.2 I get a
> "query completed successfully" (status) message. The same thing happens
> when I run an SQL function we've written that passes a cursor back --
> 7.1 returns the result, 7.2 returns a status.
>
> I assume I must be doing something wrong because if it was really broken
> then nobody could use 7.2, and the latest versions of PgAdmin are quite
> forceful about automatically installing the 7.2 drivers if they aren't
> present.
>
> Where should I look?
>
> TIA,
> Jon
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: ODBC Behavior, where do I find help?
@ 2003-04-29 17:48 Jon V <jon@cecorp.com>
parent: Wayne Armstrong <wdarmst@bacchus.com.au>
0 siblings, 1 reply; 4+ messages in thread
From: Jon V @ 2003-04-29 17:48 UTC (permalink / raw)
To: Wayne Armstrong <wdarmst@bacchus.com.au>; +Cc: pgsql-odbc
OK, the symptom is consistant with your explanation, so that makes sense
in its way.
I'm not sure how it applies to my greater problem though. Namely, I have
a function stored in the database that returns a refcursor through 7.1
and (despite my wishes) a status through 7.2. The symptoms are identical
to the begin;query;end example, but because it is a function I can't
remove the begin and end. :(
Someone else must be doing the same sort of thing... has anyone had a
similar problem?
Is there a trick I've missed? Right now we are stuck with 7.1, but we
want to use PgAdminII, and the current version seems to auto-install
odbc 7.2.
Thanks,
-Jon
Wayne Armstrong wrote:
>** Reply to message from Jon V <jon@cecorp.com> on Mon, 28 Apr 2003 14:37:05
>-0700
>Hi,
> Try it without the begin and end;
> What you are seeing is the result of the last executed statement (end; )
> I don't know if this represents a change in the odbc driver - but it is
>behaviour that seems reasonable to me :)
>
>Regards,
>Wayne
>
>
>
>>Hello all,
>>
>>I'm sure this is a pretty basic misunderstanding or misapplication on my
>>part. I'm hoping one of you can set me straight.
>>I'm running PostgreSQL 7.3.2 under Cygwin. Running ODBC 7.01.00.10 (as
>>displayed in the ODBC Data Source Administrator Driver tab), my
>>application works fine. However, if I install any of the 7.02 ODBC
>>drivers, my application fails.
>>
>>We've traced the cause of the failure, and it has me scratching my head.
>>Using our application OR PgAdminII, I run the following:
>>
>>begin;
>>select * from table_name
>>end
>>
>>With 7.1 ODBC I get a result (in PgAdminII a table pops up on the
>>screen, in our app we get the results of the query). With 7.2 I get a
>>"query completed successfully" (status) message. The same thing happens
>>when I run an SQL function we've written that passes a cursor back --
>>7.1 returns the result, 7.2 returns a status.
>>
>>I assume I must be doing something wrong because if it was really broken
>>then nobody could use 7.2, and the latest versions of PgAdmin are quite
>>forceful about automatically installing the 7.2 drivers if they aren't
>>present.
>>
>>Where should I look?
>>
>>TIA,
>> Jon
>>
>>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: ODBC Behavior, where do I find help?
@ 2003-04-30 02:17 Hiroshi Inoue <Inoue@tpf.co.jp>
parent: Jon V <jon@cecorp.com>
0 siblings, 0 replies; 4+ messages in thread
From: Hiroshi Inoue @ 2003-04-30 02:17 UTC (permalink / raw)
To: Jon V <jon@cecorp.com>; +Cc: Wayne Armstrong <wdarmst@bacchus.com.au>; pgsql-odbc
Jon V wrote:
>
> OK, the symptom is consistant with your explanation, so that makes sense
> in its way.
>
> I'm not sure how it applies to my greater problem though. Namely, I have
> a function stored in the database that returns a refcursor through 7.1
> and (despite my wishes) a status through 7.2. The symptoms are identical
> to the begin;query;end example, but because it is a function I can't
> remove the begin and end. :(
>
> Someone else must be doing the same sort of thing... has anyone had a
> similar problem?
>
> Is there a trick I've missed? Right now we are stuck with 7.1, but we
> want to use PgAdminII, and the current version seems to auto-install
> odbc 7.2.
> >>Using our application OR PgAdminII, I run the following:
> >>
> >>begin;
> >>select * from table_name
> >>end
Using the 7.2 or later driver, you would get 3 results
for the above chained command sequence.
Hiroshi Inoue
http://www.geocities.jp/inocchichichi/psqlodbc/
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2003-04-30 02:17 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-28 21:37 ODBC Behavior, where do I find help? Jon V <jon@cecorp.com>
2003-04-28 22:22 ` Wayne Armstrong <wdarmst@bacchus.com.au>
2003-04-29 17:48 ` Jon V <jon@cecorp.com>
2003-04-30 02:17 ` Hiroshi Inoue <Inoue@tpf.co.jp>
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