]> granicus.if.org Git - php/commitdiff
- Fixed bug #51562 (query timeout in mssql can not be changed per query)
authorFelipe Pena <felipe@php.net>
Wed, 21 Apr 2010 14:19:27 +0000 (14:19 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 21 Apr 2010 14:19:27 +0000 (14:19 +0000)
  Patch by: ejsmont dot artur at gmail dot com

ext/mssql/php_mssql.c

index a47d635fe58ece77ae20f1ce1631d7fc2a02301a..aaee1d2789a9394fc5dd7c1c6238f324a6ad2353 100644 (file)
@@ -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) {