summaryrefslogtreecommitdiff
path: root/ext/mssql/php_mssql.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-04-21 14:19:27 +0000
committerFelipe Pena <felipe@php.net>2010-04-21 14:19:27 +0000
commit12c8bfb021eff4e44e5cc0194d05c18de50ffc9c (patch)
tree256fa4653fbba5cb35451a52f241292231acaf20 /ext/mssql/php_mssql.c
parent623a25728ae47a03cacc861214af6886b17f0da1 (diff)
downloadphp-git-12c8bfb021eff4e44e5cc0194d05c18de50ffc9c.tar.gz
- Fixed bug #51562 (query timeout in mssql can not be changed per query)
Patch by: ejsmont dot artur at gmail dot com
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r--ext/mssql/php_mssql.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index a47d635fe5..aaee1d2789 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -1311,6 +1311,7 @@ PHP_FUNCTION(mssql_query)
mssql_result *result;
int id = -1;
+ dbsettime(MS_SQL_G(timeout));
batchsize = MS_SQL_G(batchsize);
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|rl", &query, &query_len, &mssql_link_index, &zbatchsize) == FAILURE) {