Add no-deprecated to warnings due to dynamic exceptions.
[anna.git] / include / anna / dbms.mysql / BaseBind.hpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #ifndef anna_dbms_mysql_BaseBind_hpp
10 #define anna_dbms_mysql_BaseBind_hpp
11
12 #include <anna/dbms/Data.hpp>
13
14 #include <anna/dbms.mysql/forward.hpp>
15
16 namespace anna {
17
18 namespace dbms {
19
20 namespace mysql {
21
22 class BaseBind {
23 public:
24   virtual ~BaseBind();
25
26 protected:
27   /*
28    * mysql.h:typedef char my_bool;
29    */
30   char a_nullIndicator;
31
32   /**
33    * mysql_time.h: typedef st_mysql_time MYSQL_TIME
34    */
35   st_mysql_time* a_time;
36
37   unsigned long a_length;
38
39   BaseBind(const dbms::Data& data) ;
40   void setupBind(st_mysql_bind&, dbms::Data&) throw(RuntimeException);
41
42 private:
43   static const int MaxBlobSize = 2 << 16;
44
45   const Data::Type::_v a_type;
46 };
47
48 }
49 }
50 }
51
52 #endif
53