1 --- misc/mysql-connector-c++-1.1.0/cppconn/build_config.h 2010-09-10 11:47:47.000000000 +0200
2 +++ misc/build/mysql-connector-c++-1.1.0/cppconn/build_config.h 2011-11-12 00:45:19.000000000 +0100
4 #ifndef _SQL_BUILD_CONFIG_H_
5 #define _SQL_BUILD_CONFIG_H_
7 -#ifndef CPPCONN_PUBLIC_FUNC
8 +#include <sal/types.h>
11 // mysqlcppconn_EXPORTS is added by cmake and defined for dynamic lib build only
12 #ifdef mysqlcppconn_EXPORTS
13 - #define CPPCONN_PUBLIC_FUNC __declspec(dllexport)
14 + #define CPPCONN_PUBLIC_FUNC SAL_DLLPUBLIC_EXPORT
16 // this is for static build
17 #ifdef CPPCONN_LIB_BUILD
18 #define CPPCONN_PUBLIC_FUNC
20 // this is for clients using dynamic lib
21 - #define CPPCONN_PUBLIC_FUNC __declspec(dllimport)
22 + #define CPPCONN_PUBLIC_FUNC SAL_DLLPUBLIC_IMPORT
26 - #define CPPCONN_PUBLIC_FUNC
29 -#endif //#ifndef CPPCONN_PUBLIC_FUNC
30 + #define CPPCONN_PUBLIC_EXCEPTION SAL_EXCEPTION_DLLPUBLIC_EXPORT
32 #endif //#ifndef _SQL_BUILD_CONFIG_H_
33 --- misc/mysql-connector-c++-1.1.0/cppconn/exception.h 2009-08-20 17:51:23.000000000 +0200
34 +++ misc/build/mysql-connector-c++-1.1.0/cppconn/exception.h 2009-09-11 09:41:41.076379817 +0200
37 #pragma warning(disable: 4275)
39 -class CPPCONN_PUBLIC_FUNC SQLException : public std::runtime_error
40 +class CPPCONN_PUBLIC_EXCEPTION SQLException : public std::runtime_error
45 MEMORY_ALLOC_OPERATORS(SQLException)
48 -struct CPPCONN_PUBLIC_FUNC MethodNotImplementedException : public SQLException
49 +struct CPPCONN_PUBLIC_EXCEPTION MethodNotImplementedException : public SQLException
51 MethodNotImplementedException(const MethodNotImplementedException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
52 MethodNotImplementedException(const std::string& reason) : SQLException(reason, "", 0) {}
55 -struct CPPCONN_PUBLIC_FUNC InvalidArgumentException : public SQLException
56 +struct CPPCONN_PUBLIC_EXCEPTION InvalidArgumentException : public SQLException
58 InvalidArgumentException(const InvalidArgumentException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
59 InvalidArgumentException(const std::string& reason) : SQLException(reason, "", 0) {}
62 -struct CPPCONN_PUBLIC_FUNC InvalidInstanceException : public SQLException
63 +struct CPPCONN_PUBLIC_EXCEPTION InvalidInstanceException : public SQLException
65 InvalidInstanceException(const InvalidInstanceException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
66 InvalidInstanceException(const std::string& reason) : SQLException(reason, "", 0) {}
70 -struct CPPCONN_PUBLIC_FUNC NonScrollableException : public SQLException
71 +struct CPPCONN_PUBLIC_EXCEPTION NonScrollableException : public SQLException
73 NonScrollableException(const NonScrollableException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
74 NonScrollableException(const std::string& reason) : SQLException(reason, "", 0) {}
75 --- misc/mysql-connector-c++-1.1.0/driver/mysql_debug.h 2009-08-13 17:13:46.000000000 +0200
76 +++ misc/build/mysql-connector-c++-1.1.0/driver/mysql_debug.h 2009-08-14 09:56:37.015625000 +0200
81 -#if defined(WE_HAVE_VARARGS_MACRO_SUPPORT) && (CPPCONN_TRACE_ENABLED || defined(SAL_DLLPRIVATE))
82 - #define CPP_ENTER(msg) const boost::shared_ptr< MySQL_DebugLogger > __l = this->logger;(void)__l;\
83 - MySQL_DebugEnterEvent __this_func(__LINE__, __FILE__, msg, this->logger)
84 - #define CPP_ENTER_WL(l, msg) const boost::shared_ptr< MySQL_DebugLogger > __l = (l);(void)__l;\
85 - MySQL_DebugEnterEvent __this_func(__LINE__, __FILE__, msg, (l))
86 - #define CPP_INFO(msg) {if (__l) __l->log("INF", msg); }
87 - #define CPP_INFO_FMT(...) {if (__l) __l->log_va("INF", __VA_ARGS__); }
88 - #define CPP_ERR(msg) {if (__l) __l->log("ERR", msg); }
89 - #define CPP_ERR_FMT(...) {if (__l) __l->log_va("ERR", __VA_ARGS__); }
91 #define CPP_ENTER(msg)
92 #define CPP_ENTER_WL(l, msg)
95 #define CPP_ENTER_WL(l, msg)
96 static inline void CPP_INFO_FMT(...) {}
97 static inline void CPP_ERR_FMT(...) {}
101 #include "mysql_util.h"
102 --- misc/mysql-connector-c++-1.1.0/driver/mysql_prepared_statement.cpp 2013-03-06 10:29:26.890721534 +0100
103 +++ misc/build/mysql-connector-c++-1.1.0/driver/mysql_prepared_statement.cpp 2013-03-06 10:32:02.979904080 +0100
106 #include "mysql_debug.h"
108 +#ifndef CR_INVALID_BUFFER_USE
109 +#define CR_INVALID_BUFFER_USE 2035