|
|
| version 1.2, 2001/07/25 12:46:45 | version 1.4, 2001/09/05 08:57:43 |
|---|---|
| Line 74 public: | Line 74 public: |
| *(CDatabase **)connection=db; | *(CDatabase **)connection=db; |
| } | } |
| void disconnect(SQL_Driver_services& services, void *connection) { | void disconnect(void *connection) { |
| CDatabase *db=static_cast<CDatabase *>(connection); | CDatabase *db=static_cast<CDatabase *>(connection); |
| TRY | TRY |
| delete db; | delete db; |
| CATCH_ALL (e) { | CATCH_ALL (e) { |
| _throw(services, e); | // nothing |
| } | } |
| END_CATCH_ALL | END_CATCH_ALL |
| } | } |
| Line 207 public: | Line 207 public: |
| }; | }; |
| extern "C" SQL_Driver *create() { | extern "C" SQL_Driver *SQL_DRIVER_CREATE_FUNC_NAME() { |
| return new ODBC_Driver(); | return new ODBC_Driver(); |
| } | } |