]> 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 2dfc2a4c2ff2084c3b3e513331a89d11359dcaf4..baca0d0d7c89259f60e07670a787a8af0c990005 100644 (file)
@@ -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: