diff options
author | Felipe Pena <felipe@php.net> | 2009-07-20 00:17:24 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-07-20 00:17:24 +0000 |
commit | 00054412e489c0f3a46ecdacf4ebc6c682111a3f (patch) | |
tree | 38e733217722ef1a7dc0715c025611f3095a24d2 /ext | |
parent | 2507033c796daffd2836ab5255d3eae7150710f3 (diff) | |
download | php-git-00054412e489c0f3a46ecdacf4ebc6c682111a3f.tar.gz |
- Fixed bug #48057 (Only the date fields of the first row are fetched, others are empty)
patch by: info at programmiernutte dot net
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pdo_firebird/firebird_statement.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c index ae0322780d..d98f71f370 100644 --- a/ext/pdo_firebird/firebird_statement.c +++ b/ext/pdo_firebird/firebird_statement.c @@ -363,7 +363,8 @@ static int firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, /* {{ fmt = S->H->timestamp_format ? S->H->timestamp_format : PDO_FB_DEF_TIMESTAMP_FMT; } /* 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: |