pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem with psqlODBC 07.02.0001and VB 6
2+ messages / 2 participants
[nested] [flat]
* Problem with psqlODBC 07.02.0001and VB 6
@ 2002-08-08 11:44 Eng Kern Shen <kernshen@pacific.net.sg>
2002-08-09 00:00 ` Re: Problem with psqlODBC 07.02.0001and VB 6 Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 1 reply; 2+ messages in thread
From: Eng Kern Shen @ 2002-08-08 11:44 UTC (permalink / raw)
To: pgsql-odbc
Hi,
I've been using previous versions of the ODBC driver without any
problem, but after intalling the version 07.02.0001, I discovered a
serious problem with the following codes in VB6. Locking tables with
the codes below doesn't work.
cn.Execute "BEGIN"
cn.Execute "LOCK TABLE serialno IN ACCESS EXCLUSIVE MODE"
......
cn.Execute "COMMIT"
In VB debug mode, after executing the 2nd line, I carry out a 'SELECT'
on the 'serialno' table in another connection.
In previous version, the 'SELECT' would hold the 'SELECT' result until I
execute the 'COMMIT' line in my VB codes, meaning that the locking of
the table is successful. However, in version 07.02.0001, the 'SELECT'
on the 'serialno' table display the result even though it is supposed to
be lock in my VB codes. I've also realised that other transaction
comands "BEGIN", "ROLLBACK" and "COMMIT" doesn't works as well.
Great thanks to anyone who can explain what's happening. Bug or
feature, or I should change my codings.
Kern.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Problem with psqlODBC 07.02.0001and VB 6
2002-08-08 11:44 Problem with psqlODBC 07.02.0001and VB 6 Eng Kern Shen <kernshen@pacific.net.sg>
@ 2002-08-09 00:00 ` Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 0 replies; 2+ messages in thread
From: Hiroshi Inoue @ 2002-08-09 00:00 UTC (permalink / raw)
To: Eng Kern Shen <kernshen@pacific.net.sg>; +Cc: pgsql-odbc
Eng Kern Shen wrote:
>
> Hi,
>
> I've been using previous versions of the ODBC driver without any
> problem, but after intalling the version 07.02.0001, I discovered a
> serious problem with the following codes in VB6. Locking tables with
> the codes below doesn't work.
>
> cn.Execute "BEGIN"
>
> cn.Execute "LOCK TABLE serialno IN ACCESS EXCLUSIVE MODE"
>
> ......
>
> cn.Execute "COMMIT"
Direct execution of "BEGIN", "COMMIT" or "ROLLBACK" isn't
a recommended way. Please call BeginTrans, CommitTrans or
RollbackTrans instead.
regards,
Hiroshi Inoue
http://w2422.nsk.ne.jp/~inoue/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-08-09 00:00 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-08-08 11:44 Problem with psqlODBC 07.02.0001and VB 6 Eng Kern Shen <kernshen@pacific.net.sg>
2002-08-09 00:00 ` 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