1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
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 //
9 #ifndef anna_dbms_mysql_InputBind_hpp
10 #define anna_dbms_mysql_InputBind_hpp
12 #include <anna/dbms/InputBind.hpp>
14 #include <anna/dbms.mysql/BaseBind.hpp>
29 class InputBind : public dbms::InputBind, public BaseBind {
31 InputBind(const char* name, dbms::Data& data);
35 void code() const throw(RuntimeException);
37 void codeShortBlock(dbms::Data&) throw();
38 void codeDate(dbms::Data&) throw();
40 static char asCharacter(const char byte)
42 return (byte >= 0 && byte <= 9) ? (byte + '0') : ((byte - 0xa) + 'A');
45 /* Funciones virtuales puras */
46 void prepare(anna::dbms::Statement*, anna::dbms::Connection*, const int pos) throw(RuntimeException);
47 void release(anna::dbms::Statement*) throw() {;}
49 friend class mysql::Statement;