Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wt3ZR-0003rz-MY for pgsql-odbc@arkaria.postgresql.org; Fri, 06 Jun 2014 23:29:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wt3ZR-0004SJ-5X for pgsql-odbc@arkaria.postgresql.org; Fri, 06 Jun 2014 23:29:13 +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 1Wt3ZQ-0004SC-B6 for pgsql-odbc@postgresql.org; Fri, 06 Jun 2014 23:29:12 +0000 Received: from 173-11-38-134-minnesota.hfc.comcastbusiness.net ([173.11.38.134] helo=johnspc.frickson.pvt) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wt3ZF-0007N9-4f for pgsql-odbc@postgresql.org; Fri, 06 Jun 2014 23:29:11 +0000 Received: from [173.11.38.132] (173-11-38-132-Minnesota.hfc.comcastbusiness.net [173.11.38.132]) by johnspc.frickson.pvt (Postfix) with ESMTP id 9FFC22860CDF; Fri, 6 Jun 2014 18:28:57 -0500 (CDT) Message-ID: <1402097337.8234.43.camel@server.frickson.pvt> Subject: Re: SQLBulkOperations From: "John C. Frickson" To: "Inoue, Hiroshi" Cc: Michael Paquier , PostgreSQL ODBC List Date: Fri, 06 Jun 2014 18:28:57 -0500 In-Reply-To: <53922EE4.9090306@tpf.co.jp> References: <1402025533.8234.13.camel@server.frickson.pvt> <1402055839.8234.18.camel@server.frickson.pvt> <5391B076.8070208@tpf.co.jp> <1402059306.8234.34.camel@server.frickson.pvt> <53922EE4.9090306@tpf.co.jp> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.9 (/) 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 On Sat, 2014-06-07 at 06:13 +0900, Inoue, Hiroshi wrote: > > (2014/06/06 21:55), John C. Frickson wrote: > > /etc/unixODBC/odbcinst.ini: > > [PSQL] > > Description = PostgreSQL > > Driver64 = /usr/lib64/psqlodbcw.so > > UsageCount = 1 > > > > I set attributes like this: > > > > SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION, (SQLPOINTER)SQL_OV_ODBC3, 0); > > SQLSetConnectAttr(hdbc,SQL_ATTR_ODBC_CURSORS,(SQLPOINTER)SQL_CUR_USE_ODBC,0); > > SQLSetStmtAttr(hstmt,SQL_ATTR_CONCURRENCY, SQL_CONCUR_ROWVER, 0); > > SQLSetStmtAttr(hstmt,SQL_ATTR_CURSOR_TYPE,SQL_CURSOR_KEYSET_DRIVEN,0); > > > > Connection is DSN-less using connection string: > > DRIVER={PGSQL};SERVER=xx.xxx.xx.x;UID=user;PWD=pass;DATABASE=MyDB;UseServerSidePrepare=1; > > Please try to add UpdatabelCursors=1 to your connection string. > BTW is the version of the driver 8.3.0200 not 9.3.0200? > > regards, > Hiroshi Inoue Added "UpdatableCursors=1" to the connection string. No difference. Yes, OpenSUSE has 8.3.0200. Why? I don't know. I downloaded, compiled and installed version 9.2.0100. Still get the error. -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc