Index: ChangeLog =================================================================== --- ChangeLog (revision 1041) +++ ChangeLog (working copy) @@ -13,6 +13,8 @@ * SSL connections could not be established properly. Added the server certificate verification flag. (Bug #29955) * Added deprecated SQLSetParam function. (Bug #29871) + * The wrong SQLSTATE was returned when an UPDATE failed due to a + permission failure. (Bug #28062) ---- Index: driver/error.c =================================================================== --- driver/error.c (revision 1041) +++ driver/error.c (working copy) @@ -225,6 +225,8 @@ state= "3D000"; break; case ER_PARSE_ERROR: + case ER_TABLEACCESS_DENIED_ERROR: + case ER_DBACCESS_DENIED_ERROR: state= myodbc3_errors[MYERR_42000].sqlstate; break; case ER_TABLE_EXISTS_ERROR: