From: feng.zhou <feng.zhou@wellintech.com>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Query Timeout Question
Date: Fri, 9 Dec 2011 09:44:45 +0800
Message-ID: <201112090944451236494@wellintech.com> (raw)
Hi
I set query timeout in code by using SQLSetStmtAttr ODBC API .
SQLSetStmtAttr( StatementHandle, SQL_ATTR_QUERY_TIMEOUT, (SQLPOINTER)timeout, 0 ) ;
SQLExecute(StatementHandle);
But I find this setting has no effect.Before adding timeout setting, SQLExecute costs 47 seconds.After adding timeout, costing time is same.
Postgres SQL version 8.4.2, ODBC driver 8.4.2
2011-12-09
feng.zhou
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: feng.zhou@wellintech.com
Subject: Re: Query Timeout Question
In-Reply-To: <201112090944451236494@wellintech.com>
* 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