Skip to content
Snippets Groups Projects
Commit 7548aca4 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

Fix mysql_shutdown() which changed API for versions >=50001 or

version<50000 and version>=40103 (a mess).


git-svn-id: http://root.cern.ch/svn/root/trunk@11140 27541ba8-7e3a-0410-8455-c3a389f83636
parent 7b18c4b6
No related branches found
No related tags found
No related merge requests found
// @(#)root/mysql:$Name: $:$Id: TMySQLServer.cxx,v 1.5 2004/09/21 18:46:18 brun Exp $
// @(#)root/mysql:$Name: $:$Id: TMySQLServer.cxx,v 1.6 2004/09/22 10:26:07 brun Exp $
// Author: Fons Rademakers 15/02/2000
/*************************************************************************
......@@ -237,10 +237,11 @@ Int_t TMySQLServer::Shutdown()
Error("Shutdown", "not connected");
return -1;
}
#if MYSQL_VERSION_ID < 50001
return mysql_shutdown(fMySQL);
#if MYSQL_VERSION_ID >= 50001 || \
(MYSQL_VERSION_ID < 50000 && MYSQL_VERSION_ID >= 40103)
return mysql_shutdown(fMySQL, SHUTDOWN_DEFAULT);
#else
return mysql_shutdown(fMySQL,SHUTDOWN_DEFAULT);
return mysql_shutdown(fMySQL);
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment