]> granicus.if.org Git - php/commitdiff
- Fixed bug #63214 (Large PDO Firebird Queries)
authorFelipe Pena <felipensp@gmail.com>
Fri, 12 Oct 2012 22:42:43 +0000 (19:42 -0300)
committerFelipe Pena <felipensp@gmail.com>
Fri, 12 Oct 2012 22:42:43 +0000 (19:42 -0300)
ext/pdo_firebird/firebird_driver.c

index e39555fb97efde886a911072efeadb4aa2d41854..9b0f596959a97aed9ad244b061a94a5ef0617e12 100644 (file)
@@ -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;
        }