Remove warnings
[anna.git] / source / dbms.mysql / OutputBind.cpp
index 4920921..016b9e9 100644 (file)
@@ -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 <dbms::LongBlock&>(data).getValue();
   const int maxloop = *bind.length / bufferSize;