--- parser3/src/sql/pa_sql_driver.h 2008/06/26 09:42:35 1.44 +++ parser3/src/sql/pa_sql_driver.h 2026/04/25 13:38:46 1.55 @@ -1,8 +1,8 @@ /** @file Parser: sql driver interface. - Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian driver dynamic library must look like this: @@ -26,7 +26,7 @@ #ifndef PA_SQL_DRIVER_H #define PA_SQL_DRIVER_H -static const char * const IDENT_SQL_DRIVER_H="$Date: 2008/06/26 09:42:35 $"; +#define IDENT_PA_SQL_DRIVER_H "$Id: pa_sql_driver.h,v 1.55 2026/04/25 13:38:46 moko Exp $" #include #include @@ -38,13 +38,13 @@ static const char * const IDENT_SQL_DRIV 9 introducing placeholders 10 limit fixed (default: SQL_NO_LIMIT [ULONG_MAX]), path to document_root added */ -//#define SQL_DRIVER_API_VERSION 10 -#define SQL_DRIVER_API_VERSION 9 +#define SQL_DRIVER_API_VERSION 10 +//#define SQL_DRIVER_API_VERSION 9 #define SQL_DRIVER_CREATE create /* used in driver implementation */ #define SQL_DRIVER_CREATE_NAME "create" /* could not figure out how to # it :( */ -//#define SQL_NO_LIMIT ULONG_MAX -#define SQL_NO_LIMIT 0 +#define SQL_NO_LIMIT ULONG_MAX +//#define SQL_NO_LIMIT 0 /// fields are freed elsewhere class SQL_Error { @@ -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