1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #include <anna/core/functions.hpp>
10 #include <anna/core/tracing/Logger.hpp>
12 #include <anna/dbms/LongBlock.hpp>
13 #include <anna/dbms/OutputBind.hpp>
18 void dbms::OutputBind::write() const
19 throw(RuntimeException, dbms::DatabaseException) {
20 const dbms::Data& data = Bind::getData();
22 if(data.getType() != Data::Type::LongBlock) {
23 string msg("anna::dbms::OutputBind::write | ");
24 msg += data.asString();
25 msg += " | This method only can be called for anna::dbms::LongBlock types";
26 throw RuntimeException(msg, ANNA_FILE_LOCATION);
30 string msg("anna::dbms::OutputBind::write | ");
31 msg += data.asString();
32 Logger::debug(msg, ANNA_FILE_LOCATION);
34 do_write(reinterpret_cast <const dbms::LongBlock&>(data));