X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdbms.oracle%2FOutputBind.cpp;h=4009d9a9e02813e01652511344a9d1d8fd5d9f5e;hb=b0fce20be4095debc4b06b4b32fc9e6a8b1fa0fa;hp=3116b8dd464ad0b2c256a7970519677e4f203982;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/source/dbms.oracle/OutputBind.cpp b/source/dbms.oracle/OutputBind.cpp index 3116b8d..4009d9a 100644 --- a/source/dbms.oracle/OutputBind.cpp +++ b/source/dbms.oracle/OutputBind.cpp @@ -35,7 +35,7 @@ OutputBind::~OutputBind() { } void OutputBind::prepare(dbms::Statement* dbmsStatement, dbms::Connection* connection, const int pos) -throw(dbms::DatabaseException) { +noexcept(false) { if(a_ociDefine != NULL) return; @@ -86,7 +86,7 @@ throw(dbms::DatabaseException) { // (1) Truco para fijar el contenido y la longitud actual. //------------------------------------------------------------------------------- void OutputBind::decode() const -throw(RuntimeException) { +noexcept(false) { OutputBind* _this = const_cast (this); char* str; Data& data = _this->getData(); @@ -101,6 +101,9 @@ throw(RuntimeException) { else dbms::String::strip(str); + break; + case Data::Type::Integer: + throw RuntimeException("anna::dbms::oracle::OutputBind::decode not implemented for Data::Type::Integer", ANNA_FILE_LOCATION); break; case Data::Type::Float: decodeFloat(data); @@ -125,7 +128,7 @@ throw(RuntimeException) { } void OutputBind::decodeFloat(dbms::Data& data) const -throw(RuntimeException) { +noexcept(false) { dbms::Float& _float = static_cast (data); if(data.isNull() == true) { @@ -147,7 +150,7 @@ throw(RuntimeException) { } void OutputBind::decodeShortBlock(dbms::Data& data) const -throw(RuntimeException) { +noexcept(false) { const anna::DataBlock& constdbms(static_cast (data).getValue()); anna::DataBlock& dataBlock(const_cast (constdbms)); @@ -178,7 +181,7 @@ throw(RuntimeException) { // (1) Offset = 1 => primer caracter. //-------------------------------------------------------------------------------------------- void OutputBind::decodeLongBlock(dbms::Data& data) const -throw(RuntimeException) { +noexcept(false) { const anna::DataBlock& constdbms(static_cast (data).getValue()); anna::DataBlock& dataBlock(const_cast (constdbms)); dataBlock.clear(); @@ -220,7 +223,7 @@ throw(RuntimeException) { } void OutputBind::do_write(const dbms::LongBlock& data) const -throw(RuntimeException, dbms::DatabaseException) { +noexcept(false) { const anna::DataBlock& dataBlock = data.getValue(); if(a_blob.handle == NULL) { @@ -239,7 +242,7 @@ throw(RuntimeException, dbms::DatabaseException) { } void OutputBind::decodeDate(dbms::Data& data) const -throw(RuntimeException, dbms::DatabaseException) { +noexcept(false) { if(data.isNull() == true) return;