X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdbms.mysql%2FInputBind.cpp;h=87ab95adfc717855708ed6494e13a7d49ecad67a;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hp=983612b6d3289fa2063190e5a6983d8845f18d76;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/source/dbms.mysql/InputBind.cpp b/source/dbms.mysql/InputBind.cpp index 983612b..87ab95a 100644 --- a/source/dbms.mysql/InputBind.cpp +++ b/source/dbms.mysql/InputBind.cpp @@ -38,7 +38,7 @@ InputBind::~InputBind() { * Completa la informacion establececida por el setupBind. */ void InputBind::prepare(anna::dbms::Statement* dbmsStmt, anna::dbms::Connection*, const int pos) -throw(RuntimeException) { +noexcept(false) { st_mysql_bind* bind = static_cast (dbmsStmt)->getBindParams() + pos; Data& data = anna::dbms::Bind::getData(); BaseBind::setupBind(*bind, data); @@ -57,7 +57,7 @@ throw(RuntimeException) { * Codificar� la informaci�n C++ de forma que encaje en las estructuras requeridas por el API de MySQL. */ void InputBind::code() const -throw(RuntimeException) { +noexcept(false) { InputBind* _this = const_cast (this); Data& data = _this->getData(); @@ -72,6 +72,19 @@ throw(RuntimeException) { case Data::Type::TimeStamp: _this->codeDate(data); break; + case Data::Type::Integer: + throw RuntimeException("anna::dbms::mysql::InputBind::code not implemented for Data::Type::Integer", ANNA_FILE_LOCATION); + break; + case Data::Type::Float: + throw RuntimeException("anna::dbms::mysql::InputBind::code not implemented for Data::Type::Float", ANNA_FILE_LOCATION); + break; + case Data::Type::ShortBlock: + throw RuntimeException("anna::dbms::mysql::InputBind::code not implemented for Data::Type::ShortBlock", ANNA_FILE_LOCATION); + break; + case Data::Type::LongBlock: + throw RuntimeException("anna::dbms::mysql::InputBind::code not implemented for Data::Type::LongBlock", ANNA_FILE_LOCATION); + break; + } } @@ -80,7 +93,7 @@ throw(RuntimeException) { * a establecer en �ste m�todo. */ void InputBind::codeDate(dbms::Data& data) -throw() { +{ dbms::Date& date = static_cast (data); if(data.getType() == Data::Type::TimeStamp) {