Skip to content

Commit 7a29706

Browse files
ndparkerphdru
authored andcommitted
make oursql compile against mariadb and mysql 5.6 / 5.7
1 parent b4683ed commit 7a29706

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

oursqlx/_exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ enum _oursqlx_exception_type _oursqlx_exc_from_errno(int err) {
617617
return _oursqlx_PermissionsError;
618618

619619
default:
620-
#if MYSQL_VERSION_ID >= 50700
620+
#if MYSQL_VERSION_ID >= 50700 && !defined(ER_ERROR_FIRST)
621621
{
622622
unsigned int i;
623623
for(i = 0; i < sizeof(errmsg_section_start)/sizeof(int); ++i) {

0 commit comments

Comments
 (0)