pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: feng.zhou <feng.zhou@wellintech.com>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Query Timeout Question
Date: Fri, 9 Dec 2011 09:58:23 +0800
Message-ID: <201112090958236709111@wellintech.com> (raw)
References: <201112090944451236494@wellintech.com>

sorry, timeout is 15 seconds


2011-12-09 



feng.zhou 



发件人: feng.zhou 
发送时间: 2011-12-09  09:25:49 
收件人: pgsql-sql 
抄送: 
主题: [SQL] Query Timeout Question 
 
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 


view thread (4+ messages)  latest in thread

Message-ID: <201112090958236709111@wellintech.com>
Permalink:  ../201112090958236709111@wellintech.com/
Also on:    postgresql.org/message-id/201112090958236709111@wellintech.com

 · 

reply

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: <201112090958236709111@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