From: Felipe Pena Date: Mon, 20 Jul 2009 00:17:24 +0000 (+0000) Subject: - Fixed bug #48057 (Only the date fields of the first row are fetched, others are... X-Git-Tag: php-5.4.0alpha1~191^2~3045 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44743838b1afe8327aeab38a76a9a5bed1cc1a13;p=php - Fixed bug #48057 (Only the date fields of the first row are fetched, others are empty) patch by: info at programmiernutte dot net --- diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c index 2dfc2a4c2f..baca0d0d7c 100644 --- a/ext/pdo_firebird/firebird_statement.c +++ b/ext/pdo_firebird/firebird_statement.c @@ -359,7 +359,8 @@ static int firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, /* {{ } /* convert the timestamp into a string */ - *ptr = FETCH_BUF(S->fetch_buf[colno], char, *len = 80, NULL); + *len = 80; + *ptr = FETCH_BUF(S->fetch_buf[colno], char, *len, NULL); *len = strftime(*ptr, *len, fmt, &t); break; case SQL_BLOB: