summaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/odbc/info.c')
-rw-r--r--src/interfaces/odbc/info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/odbc/info.c b/src/interfaces/odbc/info.c
index 9d4e75a9e0a..f796f8aae9b 100644
--- a/src/interfaces/odbc/info.c
+++ b/src/interfaces/odbc/info.c
@@ -28,7 +28,7 @@
#include "iodbc.h"
#include "isql.h"
#include "isqlext.h"
-#include <ctype.h> /* for tolower function */
+#include <ctype.h>
#else
#include <windows.h>
#include <sql.h>
@@ -2615,7 +2615,7 @@ Int2 result_cols;
/* Handle action (i.e., 'cascade', 'restrict', 'setnull') */
- switch(tolower(ptr[0])) {
+ switch(tolower((unsigned char) ptr[0])) {
case 'c':
action = SQL_CASCADE;
break;