|
|
| version 1.22, 2002/02/08 07:27:45 | version 1.26, 2002/08/01 11:41:16 |
|---|---|
| Line 2 | Line 2 |
| Parser: sql fconnection decl. | Parser: sql fconnection decl. |
| Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| $Id$ | |
| */ | */ |
| #ifndef PA_SQL_CONNECTION_H | #ifndef PA_SQL_CONNECTION_H |
| #define PA_SQL_CONNECTION_H | #define PA_SQL_CONNECTION_H |
| static const char* IDENT_SQL_CONNECTION_H="$Date$"; | |
| #include "pa_pool.h" | #include "pa_pool.h" |
| #include "pa_sql_driver.h" | #include "pa_sql_driver.h" |
| #include "pa_sql_driver_manager.h" | #include "pa_sql_driver_manager.h" |
| Line 99 private: // closing process | Line 99 private: // closing process |
| /// return to cache | /// return to cache |
| void close() { | void close() { |
| if(marked_to_rollback) | if(marked_to_rollback) { |
| rollback(); | rollback(); |
| else | marked_to_rollback=false; |
| } else | |
| commit(); | commit(); |
| SQL_driver_manager->close_connection(furl, *this); | SQL_driver_manager->close_connection(furl, *this); |