Created this PR for issue #11280
SQLSTATE as seen here it is not always a number MSDN article
So if you are passing the SQLSTATE value '42S22' for error 'Column not found', '42S01' for error 'Base table or view not found' or even 'HY000' for 'General error' into RuntimeException for the error code that will be problematic as it is expecting an integer.
Created this PR for issue #11280
SQLSTATE as seen here it is not always a number MSDN article
So if you are passing the SQLSTATE value '42S22' for error 'Column not found', '42S01' for error 'Base table or view not found' or even 'HY000' for 'General error' into RuntimeException for the error code that will be problematic as it is expecting an integer.