Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XRHIl-0001qq-M9 for pgsql-odbc@arkaria.postgresql.org; Tue, 09 Sep 2014 09:01:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XRHIl-00011g-1Z for pgsql-odbc@arkaria.postgresql.org; Tue, 09 Sep 2014 09:01:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XRHIk-00011Z-87 for pgsql-odbc@postgresql.org; Tue, 09 Sep 2014 09:01:26 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XRHIb-0000mx-Vo for pgsql-odbc@postgresql.org; Tue, 09 Sep 2014 09:01:25 +0000 Received: (qmail 4904 invoked by uid 502); 9 Sep 2014 09:01:15 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 9 Sep 2014 09:01:15 -0000 Message-ID: <540EC1DA.5000406@tpf.co.jp> Date: Tue, 09 Sep 2014 18:01:14 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: vromanov@gmail.com CC: pgsql-odbc@postgresql.org Subject: Re: ODBC Driver Error - prepared statement broken after execution error References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.4 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hi Vladimir, (2014/09/05 15:07), Vladimir Romanov wrote: > Hello! > > I found some problem in ODBC Driver. How to reproduce > 1) Prepare statement > 2) Do some calls to get for sample "duplicate primary key error" > 3) After this every call o this statement return error. > 4) Other statements can be executed w/o problems > > db_insert(1,1); //ok > db_insert(1,2); //error > db_insert(2,3); //error > db_select(2,&value); //ok Maybe this bug was already fixed in the current git. regards, Hiroshi Inoue > > > Error log: > > Retcode [-1] when executing SQLExecute(stmt_insert) > Error [-1] in SQLExecute(stmt_insert)ERROR: > [unixODBC]ERROR: duplicate key value violates unique constraint "bench_pk" > Key (id)=(1) already exists.; > Error while executing the query > ODBC Error/Warning = 23505, Additional Error/Warning = 7 > > > Retcode [-1] when executing SQLExecute(stmt_insert) > > Error [-1] in SQLExecute(stmt_insert)ERROR: > [unixODBC]Error while executing the query > ODBC Error/Warning = S1000, Additional Error/Warning = 7 > > > test source - https://github.com/vvromanov/db_test > > -- > Vladimir Romanov -- I am using the free version of SPAMfighter. SPAMfighter has removed 12512 of my spam emails to date. Get the free SPAMfighter here: http://www.spamfighter.com/len Do you have a slow PC? Try a Free scan http://www.spamfighter.com/SLOW-PCfighter?cid=sigen -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc