Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix initializer type for MADB_ErrorList
The initializer { 0, 0, 0, -1 } results in an error entry of, {SqlState = "\000\000\000\377\000", SqlStateV2 = "\000\000\000\000\000", SqlErrorMsg = '\000' <repeats 512 times>, ReturnValue = 0} The reason is that integers are converted to char initializers in the SqlState char array and the remainder is set to 0. Instead, we should use compatible types so no implicit conversion occurs. With this, the entry becomes, {SqlState = "\000\000\000\000\000", SqlStateV2 = "\000\000\000\000\000", SqlErrorMsg = '\000' <repeats 512 times>, ReturnValue = -1}
- Loading branch information