- Notifications
You must be signed in to change notification settings - Fork5
Commit63d7df4
committed
Small patch which fixes the ODBC driver so it doesn't segfault if:
You have CommLog and Debug enabledYou encounter in error in any operation (SQLConnect/SQLExec).Previously, the extra logging didn't check for NULL pointerswhen trying to print some of the strings- the socket errormessage could frequently be NULL by design (if there was no socketerror)and Solaris does not handle NULLS passed to things like printf("%s\n",string);gracefully.This basically duplicates the functionality found in Linux where passinga null pointerto printf prints "(NULL)". No very elegant, but the logging is for debugonly anyway.Dirk Niggemann1 parent1c5aec6 commit63d7df4
2 files changed
+22
-10
lines changedLines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
| 33 | + | |
32 | 34 |
| |
33 | 35 |
| |
34 | 36 |
| |
| |||
1345 | 1347 |
| |
1346 | 1348 |
| |
1347 | 1349 |
| |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
1348 | 1354 |
| |
1349 |
| - | |
1350 |
| - | |
| 1355 | + | |
| 1356 | + | |
1351 | 1357 |
| |
1352 | 1358 |
| |
1353 | 1359 |
| |
1354 | 1360 |
| |
1355 | 1361 |
| |
1356 | 1362 |
| |
1357 | 1363 |
| |
1358 |
| - | |
| 1364 | + | |
1359 | 1365 |
| |
1360 | 1366 |
| |
1361 | 1367 |
| |
1362 | 1368 |
| |
1363 | 1369 |
| |
1364 | 1370 |
| |
| 1371 | + | |
1365 | 1372 |
| |
1366 | 1373 |
|
Lines changed: 12 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
| |||
899 | 900 |
| |
900 | 901 |
| |
901 | 902 |
| |
| 903 | + | |
| 904 | + | |
| 905 | + | |
902 | 906 |
| |
903 |
| - | |
904 |
| - | |
| 907 | + | |
| 908 | + | |
905 | 909 |
| |
906 | 910 |
| |
907 | 911 |
| |
908 | 912 |
| |
909 | 913 |
| |
910 |
| - | |
911 |
| - | |
| 914 | + | |
| 915 | + | |
912 | 916 |
| |
913 | 917 |
| |
914 | 918 |
| |
915 |
| - | |
| 919 | + | |
916 | 920 |
| |
917 | 921 |
| |
918 | 922 |
| |
919 | 923 |
| |
920 | 924 |
| |
921 | 925 |
| |
922 |
| - | |
923 |
| - | |
| 926 | + | |
| 927 | + | |
924 | 928 |
| |
925 | 929 |
| |
926 | 930 |
| |
| |||
929 | 933 |
| |
930 | 934 |
| |
931 | 935 |
| |
| 936 | + | |
932 | 937 |
| |
933 | 938 |
|
0 commit comments
Comments
(0)