X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdbms.mysql%2FOutputBind.cpp;h=016b9e9dfb131980d7db3def65465ca0c79ae09b;hp=492092194e7c24242124804a77d0bd87070bc97e;hb=7ee10b64f4c116460ffef5784eb9ef87d3f2339c;hpb=1a1b334a0d2b023bd778f0a19665cc9017dbc94a diff --git a/source/dbms.mysql/OutputBind.cpp b/source/dbms.mysql/OutputBind.cpp index 4920921..016b9e9 100644 --- a/source/dbms.mysql/OutputBind.cpp +++ b/source/dbms.mysql/OutputBind.cpp @@ -87,6 +87,12 @@ throw(RuntimeException) { case Data::Type::TimeStamp: _this->decodeDate(data); break; + case Data::Type::Integer: + throw RuntimeException("anna::dbms::mysql::OutputBind::decode not implemented for Data::Type::Integer", ANNA_FILE_LOCATION); + break; + case Data::Type::ShortBlock: + throw RuntimeException("anna::dbms::mysql::OutputBind::decode not implemented for Data::Type::ShortBlock", ANNA_FILE_LOCATION); + break; case Data::Type::LongBlock: try { @@ -136,7 +142,6 @@ throw() { void OutputBind::decodeLongBlob(dbms::Data& data) const throw(RuntimeException, dbms::DatabaseException) { const int bufferSize = a_blob->buffer.getMaxSize(); - const int pos = a_blob->pos; st_mysql_bind& bind = a_blob->binds [a_blob->pos]; DataBlock& target = static_cast (data).getValue(); const int maxloop = *bind.length / bufferSize;