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 » Patch: Reconnecting PostgreSQL Automatically on Unstable Networks
Re: Patch: Reconnecting PostgreSQL Automatically on Unstable Networks [message #26402 is a reply to message #26399] Fri, 30 April 2010 01:41 Go to previous messageGo to previous message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
I don't use DECLARE CURSOR and FECTH SQL statements, only simple SELECTS.

If you iterate on the result of a SELECT, it iterates on a table in RAM, AFAIK, so reconnection is not an issue here.

BTW, I changed PostgreSQLSession::Rollback() to:
void PostgreSQLSession::Rollback()
{
	ExecTrans("rollback");
	if(level>0) level--;
}


and my app is quite usable now on unstable networks.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Any way to generate sch from database?
Next Topic: SQLITE3: Bind parameter by name
Goto Forum:
  


Current Time: Sat May 11 15:07:32 CEST 2024

Total time taken to generate the page: 0.03381 seconds