Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

I think that IsError() become WasError() at some point in the history Smile

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 Wink

Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem when growing a vector
Next Topic: Testscatter2 issue
Goto Forum:
  


Current Time: Fri May 10 15:13:35 CEST 2024

Total time taken to generate the page: 0.02462 seconds