--- parser3/src/include/pa_sql_connection.h 2003/01/27 17:17:06 1.30.2.3 +++ parser3/src/include/pa_sql_connection.h 2003/01/28 09:48:16 1.30.2.4 @@ -8,7 +8,7 @@ #ifndef PA_SQL_CONNECTION_H #define PA_SQL_CONNECTION_H -static const char* IDENT_SQL_CONNECTION_H="$Date: 2003/01/27 17:17:06 $"; +static const char* IDENT_SQL_CONNECTION_H="$Date: 2003/01/28 09:48:16 $"; #include "pa_pool.h" #include "pa_sql_driver.h" @@ -108,7 +108,7 @@ public: bool connected() { return fconnection!=0; } void connect(char *used_only_in_connect_url_cstr) { SQL_CONNECTION_SERVICED_FUNC_GUARDED( - fdriver.connect(used_only_in_connect_url_cstr, *fservices, &fconnection) + fdriver.connect(used_only_in_connect_url_cstr, fservices, &fconnection) ); } void disconnect() { @@ -116,13 +116,13 @@ public: } bool ping() { SQL_CONNECTION_SERVICED_FUNC_GUARDED( - return fdriver.ping(*fservices, fconnection) + return fdriver.ping(fservices, fconnection) ); return 0; // never reached } uint quote(char *to, const char *from, unsigned int length) { SQL_CONNECTION_SERVICED_FUNC_GUARDED( - return fdriver.quote(*fservices, fconnection, to, from, length) + return fdriver.quote(fservices, fconnection, to, from, length) ); return 0; // never reached } @@ -133,7 +133,7 @@ public: ConstStringPtr source) { try { SQL_CONNECTION_SERVICED_FUNC_GUARDED( - fdriver.query(*fservices, fconnection, + fdriver.query(fservices, fconnection, statement, offset, limit, handlers) ); @@ -156,12 +156,12 @@ private: // closing process void commit() { SQL_CONNECTION_SERVICED_FUNC_GUARDED( - fdriver.commit(*fservices, fconnection) + fdriver.commit(fservices, fconnection) ); } void rollback() { SQL_CONNECTION_SERVICED_FUNC_GUARDED( - fdriver.rollback(*fservices, fconnection) + fdriver.rollback(fservices, fconnection) ); } @@ -173,7 +173,7 @@ private: // closing process } else commit(); - SQL_driver_manager.close_connection(furl, *this); + SQL_driver_manager.close_connection(furl, SQL_ConnectionPtr(this)); } };