From 0eaf4e65aa962f165168edf47229c80e50774ae0 Mon Sep 17 00:00:00 2001 From: Peter Baumann Date: Sun, 26 Jul 2009 21:56:50 +0200 Subject: PB: fix problem of "db not open" / "ta not open" (proposed by CJ) --- rasodmg/database.cc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/rasodmg/database.cc b/rasodmg/database.cc index bdf11b0..15bbf57 100644 --- a/rasodmg/database.cc +++ b/rasodmg/database.cc @@ -81,18 +81,18 @@ r_Database::get_type_schema(const char* typeName, type_schema typeType) throw (r { r_Type* retval = 0; - if ((typeName == NULL) || (strlen(typeName) == 0)) - throw r_Error(r_Error::r_Error_NameInvalid); - else if ((typeType != COLLECTION ) && (typeType != MARRAY)) - throw r_Error(r_Error::r_Error_TypeInvalid); - else if (r_Database::actual_database != NULL) - throw r_Error(r_Error::r_Error_DatabaseClosed); - else if (r_Database::actual_database->get_status() != r_Database::not_open) - throw r_Error(r_Error::r_Error_DatabaseClosed); - else if (r_Transaction::actual_transaction != NULL) - throw r_Error(r_Error::r_Error_TransactionNotOpen); - else if (r_Transaction::actual_transaction->get_status() == r_Transaction::active) - throw r_Error(r_Error::r_Error_TransactionNotOpen); + if ((typeName == NULL) || (strlen(typeName) == 0)) + throw r_Error(r_Error::r_Error_NameInvalid); + else if ((typeType != COLLECTION ) && (typeType != MARRAY)) + throw r_Error(r_Error::r_Error_TypeInvalid); + else if (r_Database::actual_database == NULL) + throw r_Error(r_Error::r_Error_DatabaseClosed); + else if (r_Database::actual_database->get_status() == r_Database::not_open) + throw r_Error(r_Error::r_Error_DatabaseClosed); + else if (r_Transaction::actual_transaction == NULL) + throw r_Error(r_Error::r_Error_TransactionNotOpen); + else if (r_Transaction::actual_transaction->get_status() != r_Transaction::active) + throw r_Error(r_Error::r_Error_TransactionNotOpen); else { ClientComm::r_Type_Type type; -- cgit