pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nicolas GIMMILLARO <nicolas.gimmillaro@wmi.fr>
To: pgsql-odbc@postgresql.org
Subject: Problem with DELETE instruction and ODBC
Date: Thu, 01 Apr 2004 18:52:41 +0200
Message-ID: <406C48D9.8020909@wmi.fr> (raw)

Sine I've installed psqlodbc version 07.03.0200 I have error while 
trying to delete records from empty tables.

"DELETE FROM test" works if the table contains records, but if it is 
empty, MSACCESS return "no current record" (direct sql query)

The same query in delphi (4 and 7) has the same behavior. No error if 
the table contains records, and "Erreur de séquence de la fonction" (in 
french, sorry) if the table is empty.

Structure of the "test" table :

CREATE TABLE test (
    id integer NOT NULL,
    attrib character varying(250)
);



Versions affected :
PostgreSQL 7.4.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3
PostgreSQL 7.3.6 on i686-pc-linux-gnu, compiled by GCC 2.7.2.3

Any idea ?

Nicolas




Message-ID: <406C48D9.8020909@wmi.fr>
Permalink:  ../406C48D9.8020909@wmi.fr/
Also on:    postgresql.org/message-id/406C48D9.8020909@wmi.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: nicolas.gimmillaro@wmi.fr
  Subject: Re: Problem with DELETE instruction and ODBC
  In-Reply-To: <406C48D9.8020909@wmi.fr>
  References: <406C48D9.8020909@wmi.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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