Home » Community » Newbie corner » SQL : how to prevent duplicates ?
Re: SQL : how to prevent duplicates ? [message #42403 is a reply to message #42399] |
Tue, 11 March 2014 20:16   |
|
I think that IsError() become WasError() at some point in the history 
There is whole lot of well-documented error-related methods in SqlSession class:
bool WasError() const;
void SetError(String error, String stmt, int code = 0, const char * scode = NULL, Sql::ERRORCLASS clss = Sql::ERROR_UNSPECIFIED);
String GetLastError() const;
String GetErrorStatement() const;
int GetErrorCode() const;
String GetErrorCodeString() const;
Sql::ERRORCLASS GetErrorClass() const;
void ClearError();
void InstallErrorHandler(bool (*handler)(String error, String stmt, int code, const char *scode, Sql::ERRORCLASS clss));
They should solve any problem you have, at least in theory 
Honza
|
|
|
Goto Forum:
Current Time: Sun Apr 27 21:07:24 CEST 2025
Total time taken to generate the page: 0.00748 seconds
|