-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug#30561920 - HANDLER FAILS TO TRIGGER ON ERROR 1049 OR SQLSTATE 420…
…00 OR PLAIN SQLEXCEPTION Issue here is, if an error handler is defined in a stored program then error condition for trying to access a non-existing table is handled. But if a stored program statement tries to access table from non-existing database then error is not handled by the error handler. While opening table for a stored program, if a table is not found then error is ignored using internal error handler. The real failure occurs when statement attempts to use the table. Error is handled by the stored program error handler at this stage. Internal error handler used to ignore error at table open stage currently handles only error reported for non-existing table. Error reported for non-existing database is not handled by it. Due to which error is reported much before stored program error handlers can be invoked. To fix this issue, extended internal error handler to ignore even error reported for non-existing database. Thanks to Kamil Holubicki for contributing a patch for this issue. Change-Id: I4e78904120a0af6012fab2db94bbb66133c66fda
- Loading branch information
Showing
3 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters