mirror of
https://github.com/php/php-src.git
synced 2026-03-30 04:02:19 +02:00
dblib's dbcolname can return null in some cases
This commit is contained in:
committed by
Anatol Belski
parent
4c8f064d7d
commit
5c19355095
@@ -206,7 +206,7 @@ static int pdo_dblib_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
|
||||
|
||||
char *fname = (char*)dbcolname(H->link, colno+1);
|
||||
char computed_buf[16];
|
||||
if (*fname) {
|
||||
if (fname && *fname) {
|
||||
col->name = estrdup(fname);
|
||||
} else {
|
||||
snprintf(computed_buf,16,"computed%d", colno);
|
||||
|
||||
Reference in New Issue
Block a user