1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 08:28:26 +02:00

this hack can and does segv; let's remove it.

This commit is contained in:
Wez Furlong
2005-07-20 01:59:14 +00:00
parent 0e8430bc78
commit 8adbc92d4b
+1 -14
View File
@@ -96,20 +96,7 @@ static int pdo_mysql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
my_bool on = 1;
/* if we have bound the buffers don't set the attribute again */
if (!S->result) {
/* FIXME: using directly internal structs - but for now cleaner
* then calling 2 times result_metadata. */
for (i = 0; i < S->stmt->field_count; i++) {
switch (S->fields[i].type) {
case MYSQL_TYPE_MEDIUM_BLOB:
case MYSQL_TYPE_LONG_BLOB:
case MYSQL_TYPE_BLOB:
mysql_stmt_attr_set(S->stmt, STMT_ATTR_UPDATE_MAX_LENGTH, &on);
i= stmt->column_count;
break;
default:
break;
}
}
mysql_stmt_attr_set(S->stmt, STMT_ATTR_UPDATE_MAX_LENGTH, &on);
}
mysql_stmt_store_result(S->stmt);
}