Diff for /parser3/src/include/pa_sql_connection.h between versions 1.27 and 1.30

version 1.27, 2002/08/15 10:38:18 version 1.30, 2003/01/21 15:51:11
Line 1 Line 1
 /** @file  /** @file
         Parser: sql fconnection decl.          Parser: sql fconnection decl.
   
         Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
 */  */
   
Line 17  static const char* IDENT_SQL_CONNECTION_ Line 17  static const char* IDENT_SQL_CONNECTION_
 // defines  // defines
   
 /// @see SQL_Driver_services_impl::_throw  /// @see SQL_Driver_services_impl::_throw
 #define SQL_CONNECTION_SERVICED_FUNC_GUARDED(actions) \  #ifdef PA_WITH_SJLJ_EXCEPTIONS
         if(!fservices || !setjmp(fservices->mark)) { \          #define SQL_CONNECTION_SERVICED_FUNC_GUARDED(actions) actions
                 actions; \  #else
         } else \          #define SQL_CONNECTION_SERVICED_FUNC_GUARDED(actions) \
                 fservices->propagate_exception();                  if(!fservices || !setjmp(fservices->mark)) { \
                           actions; \
                   } else \
                           fservices->propagate_exception();
   #endif
   
 /// SQL connection. handy wrapper around low level SQL_Driver  /// SQL connection. handy wrapper around low level SQL_Driver
 class SQL_Connection : public Pooled {  class SQL_Connection : public Pooled {
Line 81  public: Line 85  public:
                                         handlers)                                          handlers)
                         );                                );      
                 } catch(const Exception& e) { // query problem                  } catch(const Exception& e) { // query problem
                         // give more specific source [were url]                          if(strcmp(e.type(), "sql.connect")==0) { // if it is _throw exception, 
                         throw Exception("sql.execute",                                  // give more specific source [were url]
                                 &source,                                   throw Exception("sql.execute",
                                 "%s", e.comment());                                          &source, 
                                           "%s", e.comment());
                           } else
                                   /*re*/throw;
                 }                  }
         }          }
   

Removed from v.1.27  
changed lines
  Added in v.1.30


E-mail: