Commit 1dd6d9a0 authored by Monty's avatar Monty

Fixed compiler warnings in connect/odbconn.cpp

parent 9d19b652
...@@ -125,18 +125,21 @@ int TranslateSQLType(int stp, int prec, int& len, char& v, bool& w) ...@@ -125,18 +125,21 @@ int TranslateSQLType(int stp, int prec, int& len, char& v, bool& w)
switch (stp) { switch (stp) {
case SQL_WVARCHAR: // (-9) case SQL_WVARCHAR: // (-9)
w = true; w = true;
// Fall through
case SQL_VARCHAR: // 12 case SQL_VARCHAR: // 12
v = 'V'; v = 'V';
type = TYPE_STRING; type = TYPE_STRING;
break; break;
case SQL_WCHAR: // (-8) case SQL_WCHAR: // (-8)
w = true; w = true;
// Fall through
case SQL_CHAR: // 1 case SQL_CHAR: // 1
type = TYPE_STRING; type = TYPE_STRING;
break; break;
case SQL_WLONGVARCHAR: // (-10) case SQL_WLONGVARCHAR: // (-10)
w = true; w = true;
case SQL_LONGVARCHAR: // (-1) // Fall through
case SQL_LONGVARCHAR: // (-1)
if (GetTypeConv() == TPC_YES || GetTypeConv() == TPC_FORCE) { if (GetTypeConv() == TPC_YES || GetTypeConv() == TPC_FORCE) {
v = 'V'; v = 'V';
type = TYPE_STRING; type = TYPE_STRING;
...@@ -2355,6 +2358,7 @@ int ODBConn::GetCatInfo(CATPARM *cap) ...@@ -2355,6 +2358,7 @@ int ODBConn::GetCatInfo(CATPARM *cap)
break; break;
case CAT_SPC: case CAT_SPC:
ThrowDBX("SQLSpecialColumns not available yet"); ThrowDBX("SQLSpecialColumns not available yet");
break;
default: default:
ThrowDBX("Invalid SQL function id"); ThrowDBX("Invalid SQL function id");
} // endswitch infotype } // endswitch infotype
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment