From: Hartmut Holzgraefe Date: Sun, 27 Feb 2005 11:46:38 +0000 (+0000) Subject: cols X-Git-Tag: RELEASE_0_3~162 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=beb7151936c89ae94c8e129914b1bfde9359dd7e;p=php cols --- diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c index 5ba2f9cd5d..ad0441beb5 100755 --- a/ext/pdo_mysql/mysql_statement.c +++ b/ext/pdo_mysql/mysql_statement.c @@ -40,10 +40,6 @@ static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) mysql_free_result(S->result); S->result = NULL; } - if (S->cols) { - efree(S->cols); - S->cols = NULL; - } efree(S); return 1; } @@ -74,7 +70,6 @@ static int pdo_mysql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) } if (!stmt->executed) { stmt->column_count = (int) mysql_num_fields(S->result); - S->cols = ecalloc(stmt->column_count, sizeof(pdo_mysql_column)); } return 1; } diff --git a/ext/pdo_mysql/php_pdo_mysql_int.h b/ext/pdo_mysql/php_pdo_mysql_int.h index 8498bb0f89..eacaa66f63 100755 --- a/ext/pdo_mysql/php_pdo_mysql_int.h +++ b/ext/pdo_mysql/php_pdo_mysql_int.h @@ -49,7 +49,6 @@ typedef struct { MYSQL_RES *result; MYSQL_ROW current_data; long *current_lengths; - pdo_mysql_column *cols; } pdo_mysql_stmt; typedef struct {