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 » U++ Library support » U++ SQL » OkCommit problem
Re: OkCommit problem [message #5171 is a reply to message #5138] Sat, 09 September 2006 12:37 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
OK, for now:

bool OkCommit(SqlSession& session, const char *msg) {
	if(ErrorRollback(session, msg))
		return false;
	session.Commit();
	if(ShowError(session, msg ? msg : t_("SQL error!")))
		return false;
	return true;
}



Raising exception is a good idea. But I wish to have that configurable... (return false/raise exception/abort).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can I create DBF files?
Next Topic: MySqlSession::EnumTables -> why uppercase?
Goto Forum:
  


Current Time: Sun Jun 09 07:30:32 CEST 2024

Total time taken to generate the page: 0.02288 seconds