Skip to content

Commit 29da887

Browse files
PaulFurtadophdru
authored andcommitted
Fix indentation
1 parent 6447efa commit 29da887

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

oursqlx/_exceptions.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -617,23 +617,23 @@ enum _oursqlx_exception_type _oursqlx_exc_from_errno(int err) {
617617
return _oursqlx_PermissionsError;
618618

619619
default:
620-
#if MYSQL_VERSION_ID >= 50700
621-
for(unsigned int i = 0; i < sizeof(errmsg_section_start)/sizeof(int); ++i) {
622-
int min = errmsg_section_start[i];
623-
int max = errmsg_section_start[i] + errmsg_section_size[i] - 1;
624-
if ( err >= min && err <= max ) {
625-
return _oursqlx_ProgrammingError;
626-
}
627-
}
628-
if ( err > CR_MIN_ERROR && err < CR_MAX_ERROR) {
629-
return _oursqlx_InterfaceError;
630-
}
631-
#else
632-
if (err >= ER_ERROR_FIRST && err <= ER_ERROR_LAST)
633-
return _oursqlx_ProgrammingError;
634-
else if (err > CR_MIN_ERROR && err < CR_MAX_ERROR)
635-
return _oursqlx_InterfaceError;
636-
#endif
620+
#if MYSQL_VERSION_ID >= 50700
621+
for(unsigned int i = 0; i < sizeof(errmsg_section_start)/sizeof(int); ++i) {
622+
int min = errmsg_section_start[i];
623+
int max = errmsg_section_start[i] + errmsg_section_size[i] - 1;
624+
if ( err >= min && err <= max ) {
625+
return _oursqlx_ProgrammingError;
626+
}
627+
}
628+
if ( err > CR_MIN_ERROR && err < CR_MAX_ERROR) {
629+
return _oursqlx_InterfaceError;
630+
}
631+
#else
632+
if (err >= ER_ERROR_FIRST && err <= ER_ERROR_LAST)
633+
return _oursqlx_ProgrammingError;
634+
else if (err > CR_MIN_ERROR && err < CR_MAX_ERROR)
635+
return _oursqlx_InterfaceError;
636+
#endif
637637
}
638638
return _oursqlx_UnknownError;
639639
}

0 commit comments

Comments
 (0)