X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C3DCDD1EB9F for ; Thu, 1 Apr 2004 16:52:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 80248-09 for ; Thu, 1 Apr 2004 12:52:47 -0400 (AST) Received: from wmi.wmi.fr (ns.wmi.fr [195.101.105.100]) by svr1.postgresql.org (Postfix) with ESMTP id CE510D1E8CE for ; Thu, 1 Apr 2004 12:52:45 -0400 (AST) Received: from wmi.fr (portng.epinal.wmi.fr [192.168.0.9]) by wmi.wmi.fr (8.11.7/8.11.6) with ESMTP id i31Gqil10887 for ; Thu, 1 Apr 2004 18:52:44 +0200 Message-ID: <406C48D9.8020909@wmi.fr> Date: Thu, 01 Apr 2004 18:52:41 +0200 From: Nicolas GIMMILLARO User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, fr MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Problem with DELETE instruction and ODBC Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/36 X-Sequence-Number: 3931 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