oursql is a set of MySQL bindings for python with a focus on wrapping the MYSQL_STMT API to provide real parameterization and real server-side cursors.
BSD 3-Clause "New" or "Revised" License
35
stars
19
forks
source link
Remove variable declaration from for-loop header and enclose in block #6
This solves error: for loop initial declarations are only allowed in C99 mode when building on gcc 4.4.7 (Default gcc on CentOS 6.x) against the MySQL 5.7 libs.
This PR has two commits, the first commit only alters indentation because this appears to have accidentally been indented with 3 spaces instead of 4, so it was messing with my editor.
This solves
error: for loop initial declarations are only allowed in C99 mode
when building on gcc 4.4.7 (Default gcc on CentOS 6.x) against the MySQL 5.7 libs.This PR has two commits, the first commit only alters indentation because this appears to have accidentally been indented with 3 spaces instead of 4, so it was messing with my editor.
The important portion of the diff is in the second commit: https://github.com/python-oursql/oursql/commit/9ffee5dc887bd1a22cb55a708699007ac58437f7
See also: https://github.com/python-oursql/oursql/pull/4 which introduced 5.7 support.