From: Hiroshi Inoue <inoue@tpf.co.jp>
To: ter062424 <ter062424@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ODBC SELECT Timeout
Date: Sat, 25 May 2013 06:13:23 +0900
Message-ID: <519FD7F3.7050209@tpf.co.jp> (raw)
In-Reply-To: <1369242527629-5756490.post@n5.nabble.com>
References: <1369242527629-5756490.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Hello,
(2013/05/23 2:08), ter062424 wrote:
> Hello,
>
> I have a very large, long running query that is being run on a CentOS 6
> Linux box from an application using unixODBC 2.2.14 and postgresql-odbc 8.4.
> The target database is a postgreSQL 8.4 DB on another CentOS 6 Linux box.
>
> When run, the query runs for about one hour and then dies with the following
> error:
>
> for SQL input object "SQL-AR": SQLNumResultCols: -1/1; S1000/[unixODBC]No
> query has been executed with that handle
>
> I'm no overly familiar with using ODBC and have been researching this as
> best as I can. I've tried to add UseDeclareFetch to /etc/odbcinst.ini as
> well, thinking that may be the cause. Note that other queries run fine.
> I'm not sure if it is timing out, or what is happening. Does anyone know
> what this error could mean, and if there is anything I can put in my
> /etc/odbcinst.ini to help resolve the problem.
>
> My /etc/odbcinst.ini currently looks like this:
>
> [PostgreSQL]
> Description = ODBC for PostgreSQL
> Driver = /usr/lib/psqlodbc.so
> Setup = /usr/lib/libodbcpsqlS.so
> Driver64 = /usr/lib64/psqlodbc.so
> Setup64 = /usr/lib64/libodbcpsqlS.so
> UseDeclareFetch = 1
> Fetch = 100
> UseServerSidePrepare = 0
Could please try
UseServerSidePrepare = 1
?
regards,
Hiroshi Inoue
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
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: inoue@tpf.co.jp, ter062424@gmail.com
Subject: Re: ODBC SELECT Timeout
In-Reply-To: <519FD7F3.7050209@tpf.co.jp>
References: <1369242527629-5756490.post@n5.nabble.com> <519FD7F3.7050209@tpf.co.jp>
* 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