X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdbms.oracle%2FDescriptor.cpp;fp=source%2Fdbms.oracle%2FDescriptor.cpp;h=0000000000000000000000000000000000000000;hb=851ff2962362fd5bad874e8ed91445b296eaca24;hp=b7e501149e2e6f821e121695b441094cd56c99e6;hpb=78be86969d2f26a9084b0c4af6ce43d5fa4ed3fd;p=anna.git diff --git a/source/dbms.oracle/Descriptor.cpp b/source/dbms.oracle/Descriptor.cpp deleted file mode 100644 index b7e5011..0000000 --- a/source/dbms.oracle/Descriptor.cpp +++ /dev/null @@ -1,39 +0,0 @@ -// ANNA - Anna is Not Nothingness Anymore // -// // -// (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo // -// // -// See project site at http://redmine.teslayout.com/projects/anna-suite // -// See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE // - - -#include - -#include -#include -#include -#include - -using namespace anna; - -dbms::oracle::Descriptor::~Descriptor() { - if(*reference != NULL) { - OCIDescriptorFree(*reference, type); - *reference = NULL; - } -} - -void dbms::oracle::Descriptor::allocate(dbms::oracle::Database& database, dbms::oracle::Connection* connection, const int _type) -throw(RuntimeException) { - if(*reference != NULL) - return; - - env = database; - error = database.getErrorHandler(); - context = *connection; // Invoca al operador de conversion - - try { - anna_dbms_oracle_check(OCIDescriptorAlloc(env, reference, type = _type, 0, 0), error); - } catch(DatabaseException& edb) { - throw RuntimeException(edb); - } -}