File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
## (unreleased)
2
2
3
+ * Fix compilation errors for Amazon Linux 1. Fixes #495 .
4
+
3
5
## 2.1.4
4
6
5
7
* Improve handling of network related timeouts
Original file line number Diff line number Diff line change @@ -99,12 +99,14 @@ static void nogvl_cleanup(DBPROCESS *client) {
99
99
Now that the blocking operation is done, we can finally throw any
100
100
exceptions based on errors from SQL Server.
101
101
*/
102
- for (short int i = 0 ; i < userdata -> nonblocking_errors_length ; i ++ ) {
102
+ short int i ;
103
+ for (i = 0 ; i < userdata -> nonblocking_errors_length ; i ++ ) {
103
104
tinytds_errordata error = userdata -> nonblocking_errors [i ];
104
105
105
106
// lookahead to drain any info messages ahead of raising error
106
107
if (!error .is_message ) {
107
- for (short int j = i ; j < userdata -> nonblocking_errors_length ; j ++ ) {
108
+ short int j ;
109
+ for (j = i ; j < userdata -> nonblocking_errors_length ; j ++ ) {
108
110
tinytds_errordata msg_error = userdata -> nonblocking_errors [j ];
109
111
if (msg_error .is_message ) {
110
112
rb_tinytds_raise_error (client , msg_error );
You can’t perform that action at this time.
0 commit comments