Remove dynamic exceptions
[anna.git] / source / dbms.mysql / Statement.cpp
index 18e5031..3c38364 100644 (file)
@@ -34,10 +34,10 @@ dbms::mysql::Statement::~Statement() {
  *
  */
 void dbms::mysql::Statement::prepare(dbms::Connection* dbmsConnection)
-throw(RuntimeException, dbms::DatabaseException) {
+noexcept(false) {
   LOGMETHOD(TraceMethod tm("anna::dbms::mysql::Statement", "prepare", ANNA_FILE_LOCATION));
   Connection* connection(static_cast <Connection*>(dbmsConnection));
-  Database& dbms(static_cast <Database&>(connection->getDatabase()));
+  //Database& dbms(static_cast <Database&>(connection->getDatabase()));
   LOGDEBUG(
     string msg("anna::dbms::mysql::Statement::prepare | ");
     msg += asString();
@@ -127,8 +127,8 @@ throw(RuntimeException, dbms::DatabaseException) {
 }
 
 dbms::ResultCode dbms::mysql::Statement::execute(dbms::Connection* dbmsConnection)
-throw(RuntimeException, dbms::DatabaseException) {
-  Connection* connection(static_cast <Connection*>(dbmsConnection));
+noexcept(false) {
+  //Connection* connection(static_cast <Connection*>(dbmsConnection));
 
   for(input_iterator ii = input_begin(), maxii = input_end(); ii != maxii; ii ++) {
     inputBind(ii)->code();
@@ -148,7 +148,7 @@ throw(RuntimeException, dbms::DatabaseException) {
  * Según la información de http://dev.mysql.com/doc/refman/4.1/en/mysql-stmt-fetch.html
  */
 bool dbms::mysql::Statement::fetch()
-throw(RuntimeException, dbms::DatabaseException) {
+noexcept(false) {
   bool result = false;
 
   switch(mysql_stmt_fetch(a_mysqlStmt)) {
@@ -177,7 +177,7 @@ throw(RuntimeException, dbms::DatabaseException) {
 }
 
 st_mysql_bind* dbms::mysql::Statement::create(const int size, const char* whatis)
-throw(RuntimeException) {
+noexcept(false) {
   st_mysql_bind* result = NULL;
 
   if(size > 0) {