mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
- Fix logical error in STRBLK::SetValue
modified: storage/connect/valblk.cpp - Fix compiler warning in ODBConn::GetCatInfo modified: storage/connect/odbconn.cpp
This commit is contained in:
parent
e2804d9b74
commit
18112a3f0c
2 changed files with 4 additions and 2 deletions
|
@ -2135,7 +2135,7 @@ int ODBConn::GetCatInfo(CATPARM *cap)
|
|||
SQLULEN crow;
|
||||
PQRYRES qrp = cap->Qrp;
|
||||
PCOLRES crp;
|
||||
RETCODE rc;
|
||||
RETCODE rc = 0;
|
||||
HSTMT hstmt = NULL;
|
||||
SQLLEN *vl, *vlen = NULL;
|
||||
PVAL *pval = NULL;
|
||||
|
@ -2199,6 +2199,8 @@ int ODBConn::GetCatInfo(CATPARM *cap)
|
|||
break;
|
||||
case CAT_SPC:
|
||||
ThrowDBX("SQLSpecialColumns not available yet");
|
||||
default:
|
||||
ThrowDBX("Invalid SQL function id");
|
||||
} // endswitch infotype
|
||||
|
||||
if (!Check(rc))
|
||||
|
|
|
@ -1052,7 +1052,7 @@ void STRBLK::SetValue(char *sp, uint len, int n)
|
|||
memcpy(p, sp, len);
|
||||
p[len] = 0;
|
||||
} else
|
||||
Strp[n] = Strp[n-1];
|
||||
p = Strp[n-1];
|
||||
|
||||
} else
|
||||
p = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue