mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-29 14:17:07 -06:00
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:
parent
1bef16c0ed
commit
2b505d3827
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue