mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- Fixed bug #48057 (Only the date fields of the first row are fetched, others are empty)
patch by: info at programmiernutte dot net
This commit is contained in:
parent
2507033c79
commit
00054412e4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user