Skip to content

Commit

Permalink
fix: access violation caused by invalid dbc (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq committed Sep 4, 2024
1 parent c887dc6 commit 81d33d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/error.cc
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ MySQLGetDiagField(SQLSMALLINT handle_type, SQLHANDLE handle, SQLSMALLINT record,
if (!stmt->result)
*(SQLLEN *)num_value= 0;
else
*(SQLLEN *)num_value= (SQLLEN) dbc->connection_proxy->num_rows(stmt->result);
*(SQLLEN *)num_value= (SQLLEN) stmt->dbc->connection_proxy->num_rows(stmt->result);
return SQL_SUCCESS;

case SQL_DIAG_DYNAMIC_FUNCTION:
Expand Down

0 comments on commit 81d33d4

Please sign in to comment.