Skip to content

Commit

Permalink
- fix bug, Firebird Tracker Key: ODBC-5 SFID: 1449955# Submitted By: …
Browse files Browse the repository at this point in the history
…faridz

  When executing an update sql statement using
  ::SQLExecDirect and no rows are affected by the update,
  the driver returns an SQLRETURN code SQL_SUCCESS.
  Should return SQL_NO_DATA_FOUND instead per ODBC spec.
  • Loading branch information
Vladimir Tsvigun committed Jun 18, 2006
1 parent 5a52fe3 commit 69c7457
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OdbcStatement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2523,6 +2523,8 @@ SQLRETURN OdbcStatement::executeStatement()
resultSet->readStaticCursor();
setCursorRowCount(resultSet->getCountRowsStaticCursor());
}
else if ( statement->isActiveModify() && statement->getUpdateCount() <= 0 )
return SQL_NO_DATA;

return SQL_SUCCESS;
}
Expand Down

0 comments on commit 69c7457

Please sign in to comment.