Sql: Refactored SQL 'default app cursor', added per-thread SQL option, added secondary SQLR 'default app cursor'

git-svn-id: svn://ultimatepp.org/upp/trunk@4290 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-12-10 16:03:24 +00:00
parent fa7fe19881
commit 988e51f30a
14 changed files with 913 additions and 788 deletions

View file

@ -397,11 +397,7 @@ void PostgreSQLSession::Close()
{
if(!conn)
return;
#ifndef flagNOAPPSQL
if(SQL.IsOpen() && &SQL.GetSession() == this)
SQL.Cancel();
#endif
SessionClose();
PQfinish(conn);
conn = NULL;
level = 0;