Question about refresh

From: László Tibor <ltibor(at)mail(dot)tiszanet(dot)hu>
To: "pgsql-odbc" <pgsql-odbc(at)postgresql(dot)org>
Subject: Question about refresh
Date: 2001-04-03 15:17:37
Message-ID: NEBBJDDFALKDHFBLCGCPEEINCAAA.ltibor@mail.tiszanet.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

I have problems with the driver and ODBCExpress (a Delphi
package to handle ODBC drivers without BDE). I use OEDataSet,
a component from the package with C++Builder.

Sometimes the component shows other field values than the
driver know. One example:

There is a result set showed to the user. The user changes a
record, then the component try to post it to the server. The
server throws an exception, so nothing have done on the server.
The user sees the wrong data. It's OK, he might correct the
error. Then he cancels the edit, so the component should
refresh the field values from the driver. But after refresh
we can see the wrong data, not the original! Manual refresh
won't help.

When I turn the component level caching, the problem disappeared.
So the promlem lies in the communication between the driver and
the component. I posted the problem to the ODBCExpress list, but
they insist the bug shuld be in the driver. I don't know. I
think the driver is quite good :-) I have no source for
ODBCExpress and I don't know the ODBC API. The component caching
is a good workaround, but what if I can't afford the cache?

Have you any comments? Could this problem related to ODBC API
level or any other mysterious levels?

Regards,

Tibor Laszlo
ltibor(at)mail(dot)tiszanet(dot)hu

Browse pgsql-odbc by date

  From Date Subject
Next Message Tomas Fulajtar 2001-04-04 12:09:49 Recognize unique indexes
Previous Message Johann Zuschlag 2001-04-02 16:43:27 Re: Re.:ODBC changes about parameter handling