Skip to content

Commit 68f4a3c

Browse files
committed
wip
1 parent cc46a4e commit 68f4a3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/pdo_sqlite/sqlite_driver.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ static void pdo_sqlite_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *
8989

9090
if (einfo->errcode) {
9191
add_next_index_long(info, einfo->errcode);
92-
add_next_index_string(info, einfo->errmsg);
92+
if (strlen(einfo->errmsg) > 0) {
93+
add_next_index_string(info, einfo->errmsg);
94+
}
9395
}
9496
}
9597

0 commit comments

Comments
 (0)