Core: Fixed Value::operator= cornercase

git-svn-id: svn://ultimatepp.org/upp/trunk@7908 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-11-19 14:43:43 +00:00
parent ab42d74151
commit 00d09e9626
3 changed files with 42 additions and 23 deletions

View file

@ -512,12 +512,13 @@ bool PostgreSQLConnection::Execute()
if(*s == '\'' || *s == '\"')
s = PostgreSQLReadString(s, query);
else {
if(pi >= param.GetCount()) {
session->SetError("Invalid number of parameters", statement);
return false;
}
if(*s == '?')
if(*s == '?') {
if(pi >= param.GetCount()) {
session.SetError("Invalid number of parameters", statement);
return false;
}
query.Cat(param[pi++]);
}
else
query.Cat(*s);
s++;