Commit:    9a6bc885652e0f9ecf2cea1d0c741cd91a1477c6
Author:    Felipe Pena <felipe...@gmail.com>         Fri, 12 Oct 2012 19:42:43 
-0300
Parents:   f8e26d95f27779276a2dcf9d3aefb6b2b604ba63
Branches:  PHP-5.4 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=9a6bc885652e0f9ecf2cea1d0c741cd91a1477c6

Log:
- Fixed bug #63214 (Large PDO Firebird Queries)

Bugs:
https://bugs.php.net/63214

Changed paths:
  M  ext/pdo_firebird/firebird_driver.c


Diff:
diff --git a/ext/pdo_firebird/firebird_driver.c 
b/ext/pdo_firebird/firebird_driver.c
index e39555f..9b0f596 100644
--- a/ext/pdo_firebird/firebird_driver.c
+++ b/ext/pdo_firebird/firebird_driver.c
@@ -401,7 +401,7 @@ static int firebird_alloc_prepare_stmt(pdo_dbh_t *dbh, 
const char *sql, long sql
        long l, pindex = -1;
                
        /* Firebird allows SQL statements up to 64k, so bail if it doesn't fit 
*/
-       if (sql_len > SHORT_MAX) {
+       if (sql_len > 65536) {
                strcpy(dbh->error_code, "01004");
                return 0;
        }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to