• unknown's avatar
    Backport of ChangeSet 1.1845 05/02/04 13:53:16 guilhem@mysql.com +1 -0 from 5.0. · 0c22eaa9
    unknown authored
    Proposal to fix this problem: when using libmysqlclient, you must call mysql_server_end() to nicely free memory at the end
    of your program; it however sounds weird to call a function named *SERVER_end* when you're the CLIENT (you're not ending the server, you're ending
    your ability to talk to servers). So here I add two defines which should be more generic names. Our manual
    mentions these functions only for libmysqld API so needs some fixing, and then we can close BUG#8099 and BUG#6149.
    
    
    include/mysql.h:
      Creating synonyms (defines): mysql_library_init for mysql_server_init, mysql_library_end for mysql_server_end;
      these new names are more generic, so suitable when using libmysqlclient as well as libmysqld.
    0c22eaa9
mysql.h 26.9 KB