From: | Kristis Makris <kristis(dot)makris(at)datasoft(dot)com> |
---|---|
To: | Kristis Makris <kristis(dot)makris(at)datasoft(dot)com> |
Cc: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, pgsql-odbc(at)postgresql(dot)org |
Subject: | Re: Error messages not always reported through the ODBCdriver -STATEMENT ERROR missing |
Date: | 2001-08-27 19:56:20 |
Message-ID: | 200108271956.f7RJuMf56296@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
On 27 Aug 2001 09:18:16 -0700, Kristis Makris wrote:
> Hi Hiroshi,
>
>
> > > ******************************************************************************************
> > > wats=# begin;
> > > BEGIN
> > > wats=# select vendor_remove(1);
> > > ERROR: <unnamed> referential integrity violation - key in vendor still
> > > referenced from vendorforwellagreement
> > > wats=# commit;
> > > COMMIT
> > > ******************************************************************************************
> > >
> > > psql reports the error when I issue the SELECT statement, not when I
> > > issue the commit. Shouldn't I be able to capture an exception when I do
> > > an ExecuteSQL() from VC++, instead of a CommitTrans() ?
> >
> > Could you show me a reproducible example ?
>
>
> I'm attaching two .sql files. Using psql, load the file "tables.sql" in
> a fresh database. Then try to execute the commands in the "data.sql"
> file. You should get the following error message:
>
>
> test=# \i data.sql
> BEGIN
> psql:data.sql:2: ERROR: <unnamed> referential integrity violation - key
> in tableb still referenced from tablea
> COMMIT
>
>
> If you try to issue the commands included in the "data.sql" file through
> ODBC using VC++ (instead of psql) you will run across the case where an
> exception cannot be captured.
>
I think I'd like to take that back. I've tried to create a VC++ project
that makes use of these two .sql files and tables, but I'm unable to
reproduce the bug. I'll make sure that I have put together both a VC++
project and a DB schema that exhibit the bug before I send anything
else.
Thanks for your patience,
-Kristis
From | Date | Subject | |
---|---|---|---|
Next Message | Kristis Makris | 2001-08-27 20:20:04 | Re: Error messages not always reported through the ODBCdriver -STATEMENT ERROR missing |
Previous Message | Ray Daigle | 2001-08-27 17:57:25 | A problem with the nextval('') function |