]> granicus.if.org Git - php/commitdiff
cols
authorHartmut Holzgraefe <hholzgra@php.net>
Sun, 27 Feb 2005 11:46:38 +0000 (11:46 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Sun, 27 Feb 2005 11:46:38 +0000 (11:46 +0000)
ext/pdo_mysql/mysql_statement.c
ext/pdo_mysql/php_pdo_mysql_int.h

index 5ba2f9cd5de4d9bbdd8ee2ead5c56ca4944aecaa..ad0441beb54c0d1a52432dabfef098c959cf3c66 100755 (executable)
@@ -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;
 }
index 8498bb0f89f8b60c098a55dbb4bec510fc6b63e2..eacaa66f637aa87c3f45c2b1de5d591849daaaa0 100755 (executable)
@@ -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 {