List:Commits« Previous MessageNext Message »
From:andrey.hristov Date:November 5 2008 3:36pm
Subject:bzr commit into connector-cpp-bzr branch (andrey.hristov:203)
View as plain text  
#At bzr+ssh://ahristov@stripped/bzrroot/public/connector-cpp-bzr/trunk/

  203 andrey.hristov@stripped	2008-11-05
      Add a protection for release savepoint
modified:
  driver/mysql_connection.cpp

=== modified file 'driver/mysql_connection.cpp'
--- a/driver/mysql_connection.cpp	2008-11-03 17:38:56 +0000
+++ b/driver/mysql_connection.cpp	2008-11-05 14:36:55 +0000
@@ -431,6 +431,9 @@ MySQL_Connection::releaseSavepoint(Savep
 {
 	CPP_ENTER("MySQL_Connection::releaseSavepoint");
 	checkClosed();
+	if (mysql_get_server_version() < 50001) {
+		throw sql::MethodNotImplementedException("releaseSavepoint not available in this server
version");
+	}
 	if (getAutoCommit()) {
 		throw sql::InvalidArgumentException("The connection is in autoCommit mode");
 	}

Thread
bzr commit into connector-cpp-bzr branch (andrey.hristov:203) andrey.hristov5 Nov