Skip to content

Commit eed7d2d

Browse files
committed
fbclient 3.0+ does not have a limit on the length of a SQL query of 64 KB.
The new limit is 10 MB, no one in their right mind would transmit a query of such length.
1 parent 610caf0 commit eed7d2d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ext/pdo_firebird/firebird_driver.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -989,12 +989,6 @@ static int php_firebird_alloc_prepare_stmt(pdo_dbh_t *dbh, const zend_string *sq
989989
pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data;
990990
char *new_sql;
991991

992-
/* Firebird allows SQL statements up to 64k, so bail if it doesn't fit */
993-
if (ZSTR_LEN(sql) > 65536) {
994-
php_firebird_error_with_info(dbh, "01004", strlen("01004"), NULL, 0);
995-
return 0;
996-
}
997-
998992
/* allocate the statement */
999993
if (isc_dsql_allocate_statement(H->isc_status, &H->db, s)) {
1000994
php_firebird_error(dbh);

0 commit comments

Comments
 (0)