]> granicus.if.org Git - php/commitdiff
- Fixed bug #48057 (Only the date fields of the first row are fetched, others are...
authorFelipe Pena <felipe@php.net>
Mon, 20 Jul 2009 00:17:24 +0000 (00:17 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 20 Jul 2009 00:17:24 +0000 (00:17 +0000)
  patch by: info at programmiernutte dot net

ext/pdo_firebird/firebird_statement.c

index ae0322780d422667087e8d0f4fb131fbc2ab7f83..d98f71f370c0d48b7d87578f1043fa499bd612b7 100644 (file)
@@ -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: