Sql: SqlSession: First SQL error is recorded (until ClearError) instead of last

git-svn-id: svn://ultimatepp.org/upp/trunk@2321 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-04-14 23:01:50 +00:00
parent 1bef16c0ed
commit 2b505d3827

View file

@ -659,6 +659,8 @@ Vector<SqlColumnInfo> SqlSession::EnumColumns(String database, String table)
}
void SqlSession::SetError(String error, String stmt, int code, const char *scode, Sql::ERRORCLASS clss) {
if(errorstatement.GetCount())
return;
lasterror = error;
errorstatement = stmt;
errorcode_number = code;