mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
Fixed compiler warnings in connect/odbconn.cpp
This commit is contained in:
parent
9d19b65269
commit
1dd6d9a0bf
1 changed files with 5 additions and 1 deletions
|
@ -125,18 +125,21 @@ int TranslateSQLType(int stp, int prec, int& len, char& v, bool& w)
|
|||
switch (stp) {
|
||||
case SQL_WVARCHAR: // (-9)
|
||||
w = true;
|
||||
// Fall through
|
||||
case SQL_VARCHAR: // 12
|
||||
v = 'V';
|
||||
type = TYPE_STRING;
|
||||
break;
|
||||
case SQL_WCHAR: // (-8)
|
||||
w = true;
|
||||
// Fall through
|
||||
case SQL_CHAR: // 1
|
||||
type = TYPE_STRING;
|
||||
break;
|
||||
case SQL_WLONGVARCHAR: // (-10)
|
||||
w = true;
|
||||
case SQL_LONGVARCHAR: // (-1)
|
||||
// Fall through
|
||||
case SQL_LONGVARCHAR: // (-1)
|
||||
if (GetTypeConv() == TPC_YES || GetTypeConv() == TPC_FORCE) {
|
||||
v = 'V';
|
||||
type = TYPE_STRING;
|
||||
|
@ -2355,6 +2358,7 @@ int ODBConn::GetCatInfo(CATPARM *cap)
|
|||
break;
|
||||
case CAT_SPC:
|
||||
ThrowDBX("SQLSpecialColumns not available yet");
|
||||
break;
|
||||
default:
|
||||
ThrowDBX("Invalid SQL function id");
|
||||
} // endswitch infotype
|
||||
|
|
Loading…
Reference in a new issue