Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHZtA-0000Nm-9w for pgsql-odbc@arkaria.postgresql.org; Thu, 15 Dec 2016 17:32:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cHZt9-0005vb-TD for pgsql-odbc@arkaria.postgresql.org; Thu, 15 Dec 2016 17:32:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cHDq9-0002MA-Df for pgsql-odbc@postgresql.org; Wed, 14 Dec 2016 17:59:41 +0000 Received: from mail-vk0-x242.google.com ([2607:f8b0:400c:c05::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cHDq3-0007pb-Q2 for pgsql-odbc@postgresql.org; Wed, 14 Dec 2016 17:59:39 +0000 Received: by mail-vk0-x242.google.com with SMTP id x186so4412249vkd.2 for ; Wed, 14 Dec 2016 09:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version; bh=dPwhe+TSoxAprnT1H+Dnqsy1u9u6AZvY2v31J2h59h8=; b=pxJJ/DngMTQ7TgInDK8tBv18gqKpy4L64ysFJgW2QkM2tjHvfoiUpP6zJwoTCs9J6L nIMrvO/cn1LdX7ieXW6mLlLr4bFRRrRCRf71dK86ozCWWimZm2PaBm1f4zalaOYFPO0e Kuuqzl1kqvWnvxBYdQQBeG1GxmzjM9gQQofJfHXJlDIrVYyc25TFnhpEK+ZvUzUeJKjv SCC/ehNjNzvFWk3jCCFv44K3jTUpGBRh/Wbq+Pz8vQPG6Po9AMEnqf/m8iiRn3zunT9e r4VBzEpE1mlp6O46nRJpD9znm7XaTnVH90MB93Pwm19vOwFXhDEtxVqVFRRbbB4gUvBm mxWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=dPwhe+TSoxAprnT1H+Dnqsy1u9u6AZvY2v31J2h59h8=; b=Bx1Nx9LivoHVySq4sfSvLBJ14AlNSZwWqdwJwWJSqarusCK1wz+uQPz8a3DFUiORff CWkuVU45hqFeqndNueBfYgM8lC36lDLuBMMQu9t3aqp6wG6lr62j5I+5h+3n848KEgzd Urrxu2Sv8fPiMGqayjPXKzkqB/xGWMFVH9wTQO21MvMhj/H3QqKVdyvNiFI4x+Qz/3fE CHG0bmlE30okG8LZEtSbOMjL5TsmQswRuNUecPbPZlorpneumN6DR/FdleFOD+RDKtrG ovDH8qcfFEw3n47WutDfsdrnICq9NPiyb88Im8O6O2UfB56fslJa4r31eCGoLDSbwGEV RjjA== X-Gm-Message-State: AKaTC03OOmh7hdNsb11ru7oGKHSlGCFQ5v/iqyjl9FQCdOalHwD77XZBptxYe4UvtwclYQ== X-Received: by 10.31.68.75 with SMTP id r72mr38087253vka.13.1481738374456; Wed, 14 Dec 2016 09:59:34 -0800 (PST) Received: from tiahua.n800.arm.processor.fastmail.fm ([201.240.146.197]) by smtp.gmail.com with ESMTPSA id 50sm14533853uad.28.2016.12.14.09.59.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Dec 2016 09:59:33 -0800 (PST) From: sunshavi@fastmail.fm (=?utf-8?Q?Andr=C3=A9s_Ram=C3=ADrez?=) To: pgsql-odbc@postgresql.org Subject: weird problem when running a sql stmt Date: Wed, 14 Dec 2016 12:59:51 -0500 Message-ID: <87eg1ae6i0.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -2.6 (--) 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. I have those version: --8<---------------cut here---------------start------------->8--- psqlodbc 09.05.0400 postgresql 9.6.1-3 --8<---------------cut here---------------end--------------->8--- This is my .odbc.ini (my odbcinst.ini file is empty): --8<---------------cut here---------------start------------->8--- [invcross_test] Driver = /usr/lib/psqlodbcw.so Database = invcross_test --8<---------------cut here---------------end--------------->8--- My c prg connects using dsn: --8<---------------cut here---------------start------------->8--- dsn=invcross_test;uid=okipuyuc --8<---------------cut here---------------end--------------->8--- This is my table: --8<---------------cut here---------------start------------->8--- \d store_product_detail_envers invcross_test=> Table "public.store_product_detail_envers" Column | Type | Modifiers -------------------------+-----------------------------+-------------------------------------------------------------------------- id | integer | not null default nextval('store_product_detail_envers_id_seq'::regclass) store_product_detail_id | integer | not null value | numeric(19,2) | not null effect_date | timestamp without time zone | not null end_date | timestamp without time zone | enable | smallint | not null type | character(1) | not null created_by | integer | not null updated_by | integer | created_at | timestamp without time zone | not null updated_at | timestamp without time zone | Indexes: "store_product_detail_envers_pkey" PRIMARY KEY, btree (id) "ifk_store_product_detail__enve" btree (store_product_detail_id) "store_product_detail_envers_fkindex1" btree (store_product_detail_id) Foreign-key constraints: "store_product_detail_envers_store_product_detail_id_fkey" FOREIGN KEY (store_product_detail_id) REFERENCES store_product_details(id) --8<---------------cut here---------------end--------------->8--- When running this statement: --8<---------------cut here---------------start------------->8--- update store_product_detail_envers set end_date =now(), updated_by =1, updated_at =now() where store_product_detail_id =2 and end_date IS NULL and type ='C'; --8<---------------cut here---------------end--------------->8--- I get this from the extract_error function: --8<---------------cut here---------------start------------->8--- The driver reported the following diagnostics whilst running: update store_product_detail_envers set end_date =now(), updated_by =1, updated_at =now() where store_product_detail_id =2 and end_date IS NULL and type ='C'; --8<---------------cut here---------------end--------------->8--- If the statement is run from isql (it Works): --8<---------------cut here---------------start------------->8--- isql invcross_test okipuyuc --8<---------------cut here---------------end--------------->8--- Any idea how to solve Or Debug this? Also I tried adding this on .odbc.ini (no idea where the logs are): --8<---------------cut here---------------start------------->8--- Debug = 1 CommLog = 1 --8<---------------cut here---------------end--------------->8--- My distro is Archlinux. Regards -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc