--- parser3/src/sql/pa_sql_driver.h 2015/10/26 01:21:59 1.47 +++ parser3/src/sql/pa_sql_driver.h 2019/09/11 15:26:09 1.50 @@ -1,7 +1,7 @@ /** @file Parser: sql driver interface. - Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) @@ -26,7 +26,7 @@ #ifndef PA_SQL_DRIVER_H #define PA_SQL_DRIVER_H -#define IDENT_PA_SQL_DRIVER_H "$Id: pa_sql_driver.h,v 1.47 2015/10/26 01:21:59 moko Exp $" +#define IDENT_PA_SQL_DRIVER_H "$Id: pa_sql_driver.h,v 1.50 2019/09/11 15:26:09 moko Exp $" #include #include @@ -102,7 +102,7 @@ public: /// throw C++ exception from prepared virtual void propagate_exception() =0; /// helper func - void _throw(const char* comment) { _throw(SQL_Error("sql.connect", comment)); } + void _throw(const char* comment) { _throw(SQL_Error(comment)); } public: /// regretrully public, because can't make stack frames: "nowhere to return to" jmp_buf mark; @@ -134,16 +134,6 @@ public: bool were_updated; }; - /** allocated using our allocator, - @todo never freed - */ - static void *operator new(size_t size) { - void *result=::malloc(size); - if(!result) - abort(); - - return result; - } /// get api version virtual int api_version() =0; /// initialize driver by loading sql dynamic link library