- Notifications
You must be signed in to change notification settings - Fork5
Commit40203e4
committed
Further to the previous ODBC patches I posted today, I found a couple of
problems with char array sizes having set a couple of constants to 0 forunlimited query length and row length. This additional patch cleans thoseproblems up by defining a new constant (STD_STATEMENT_LEN) to 65536 andusing that in place of MAX_STATEMENT_LEN.Another constant (MAX_MESSAGE_LEN) was defined as 2*BLCKSZ, but is now65536. This is used to define the length of the message buffer in a numberof places and as I understand it (probably not that well!) therefore alsoplaces a limit on the query length. Fixing this properly is beyond mycapabilities but 65536 should hopefully be large enough for most people.Apologies for being over-enthusiastic and posting 3 patches in one dayrather than 1 better tested one!Regards,Dave Page1 parent0e968ee commit40203e4
3 files changed
+15
-12
lines changedLines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
350 | 350 |
| |
351 | 351 |
| |
352 | 352 |
| |
353 |
| - | |
| 353 | + | |
354 | 354 |
| |
355 | 355 |
| |
356 | 356 |
| |
| |||
916 | 916 |
| |
917 | 917 |
| |
918 | 918 |
| |
919 |
| - | |
| 919 | + | |
920 | 920 |
| |
921 | 921 |
| |
922 | 922 |
| |
| |||
1186 | 1186 |
| |
1187 | 1187 |
| |
1188 | 1188 |
| |
1189 |
| - | |
| 1189 | + | |
1190 | 1190 |
| |
1191 | 1191 |
| |
1192 | 1192 |
| |
| |||
1583 | 1583 |
| |
1584 | 1584 |
| |
1585 | 1585 |
| |
1586 |
| - | |
| 1586 | + | |
1587 | 1587 |
| |
1588 | 1588 |
| |
1589 | 1589 |
| |
| |||
1719 | 1719 |
| |
1720 | 1720 |
| |
1721 | 1721 |
| |
1722 |
| - | |
| 1722 | + | |
1723 | 1723 |
| |
1724 | 1724 |
| |
1725 | 1725 |
| |
| |||
2095 | 2095 |
| |
2096 | 2096 |
| |
2097 | 2097 |
| |
2098 |
| - | |
| 2098 | + | |
2099 | 2099 |
| |
2100 | 2100 |
| |
2101 | 2101 |
| |
| |||
2262 | 2262 |
| |
2263 | 2263 |
| |
2264 | 2264 |
| |
2265 |
| - | |
| 2265 | + | |
2266 | 2266 |
| |
2267 | 2267 |
| |
2268 | 2268 |
| |
|
Lines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
58 |
| - | |
59 |
| - | |
| 57 | + | |
| 58 | + | |
60 | 59 |
| |
61 | 60 |
| |
62 | 61 |
| |
| |||
85 | 84 |
| |
86 | 85 |
| |
87 | 86 |
| |
88 |
| - | |
| 87 | + | |
| 88 | + | |
89 | 89 |
| |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 |
| |
91 | 94 |
| |
92 | 95 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
184 | 184 |
| |
185 | 185 |
| |
186 | 186 |
| |
187 |
| - | |
| 187 | + | |
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
|
0 commit comments
Comments
(0)