Diff for /parser3/src/include/pa_sql_connection.h between versions 1.9 and 1.12

version 1.9, 2001/05/17 13:23:28 version 1.12, 2001/08/24 07:04:52
Line 23  public: Line 23  public:
   
         SQL_Connection(Pool& pool, const String& aurl, SQL_Driver& adriver) : Pooled(pool),          SQL_Connection(Pool& pool, const String& aurl, SQL_Driver& adriver) : Pooled(pool),
                 furl(aurl),                  furl(aurl),
                 fdriver(adriver) {                  fdriver(adriver),
                   fconnection(0),
                   time_stamp(0) {
         }          }
           
           const String& url() { return furl; }
   
         void set_services(SQL_Driver_services *aservices) {          void set_services(SQL_Driver_services *aservices) {
                   time_stamp=time(0); // they started to use at this time
                 fservices=aservices;                  fservices=aservices;
         }          }
           bool expired(time_t older_dies) {
                   return time_stamp<older_dies;
           }
   
         void close() {          void close() {
                 SQL_driver_manager->close_connection(furl, *this);                  SQL_driver_manager->close_connection(furl, *this);
         }          }
   
           bool connected() { return fconnection!=0; }
         void connect(char *used_only_in_connect_url_cstr) {           void connect(char *used_only_in_connect_url_cstr) { 
                 fdriver.connect(used_only_in_connect_url_cstr, *fservices, &fconnection);                  fdriver.connect(used_only_in_connect_url_cstr, *fservices, &fconnection);
         }          }
         void disconnect() { fdriver.disconnect(*fservices, fconnection); }          void disconnect() { fdriver.disconnect(fconnection); fconnection=0; }
         void commit() { fdriver.commit(*fservices, fconnection); }          void commit() { fdriver.commit(*fservices, fconnection); }
         void rollback() { fdriver.rollback(*fservices, fconnection); }          void rollback() { fdriver.rollback(*fservices, fconnection); }
         bool ping() { return fdriver.ping(*fservices, fconnection); }          bool ping() { return fdriver.ping(*fservices, fconnection); }
Line 46  public: Line 56  public:
   
         void query(          void query(
                 const char *statement, unsigned long offset, unsigned long limit,                  const char *statement, unsigned long offset, unsigned long limit,
                 unsigned int *column_count, SQL_Driver::Cell **columns,                  SQL_Driver_query_event_handlers& handlers) { 
                 unsigned long *row_count, SQL_Driver::Cell ***rows) {   
                 fdriver.query(*fservices, fconnection,                   fdriver.query(*fservices, fconnection, 
                         statement, offset, limit,                           statement, offset, limit, 
                         column_count, columns,                          handlers);
                         row_count, rows);  
         }          }
   
   
Line 61  private: Line 69  private:
         SQL_Driver& fdriver;          SQL_Driver& fdriver;
         SQL_Driver_services *fservices;          SQL_Driver_services *fservices;
         void *fconnection;          void *fconnection;
           time_t time_stamp;
 };  };
   
 #endif  #endif

Removed from v.1.9  
changed lines
  Added in v.1.12


E-mail: