X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdbms.mysql%2FOutputBind.cpp;h=016b9e9dfb131980d7db3def65465ca0c79ae09b;hb=eb446c670d53aa275d78b366ef1faf2b32ca964e;hp=492092194e7c24242124804a77d0bd87070bc97e;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git 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;