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_oracle_InputBind_hpp
10 #define anna_dbms_oracle_InputBind_hpp
12 #include <anna/dbms/InputBind.hpp>
14 #include <anna/dbms.oracle/BaseBind.hpp>
31 class InputBind : public dbms::InputBind, public BaseBind {
33 InputBind(const char* name, dbms::Data& data);
39 void code() const noexcept(false);
40 void prepare(dbms::Statement*, dbms::Connection*, const int pos) noexcept(false);
41 void release(dbms::Statement*) { a_ociBind = NULL; }
43 void codeFloat(dbms::Data&) const ;
44 void codeShortBlock(dbms::Data&) const ;
45 void codeDate(dbms::Data&) const noexcept(false);
47 static char asCharacter(const char byte)
49 return (byte >= 0 && byte <= 9) ? (byte + '0') : ((byte - 0xa) + 'A');
52 friend class oracle::Statement;