mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: Fixed Value::operator= cornercase
git-svn-id: svn://ultimatepp.org/upp/trunk@7908 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ab42d74151
commit
00d09e9626
3 changed files with 42 additions and 23 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue