From: Date: April 6 2006 8:47am Subject: bk commit into 4.1 tree (bar:1.2498) BUG#18830 List-Archive: http://lists.mysql.com/commits/4537 X-Bug: 18830 Message-Id: <200604060647.k366lqQR003946@bar.intranet.mysql.r18.ru> Below is the list of changes that have just been committed into a local 4.1 repository of bar. When bar does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.2498 06/04/06 11:47:46 bar@stripped +1 -0 libmysql.c: Bug#18830: incompatibility new libraries with old server Don't execute SET NAMES with pre-4.1 server. libmysql/libmysql.c 1.302 06/04/06 11:46:21 bar@stripped +3 -0 Bug#18830: incompatibility new libraries with old server Don't execute SET NAMES with pre-4.1 server. # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: bar # Host: bar.intranet.mysql.r18.ru # Root: /usr/home/bar/mysql-4.1 --- 1.301/libmysql/libmysql.c 2006-03-05 01:38:40 +04:00 +++ 1.302/libmysql/libmysql.c 2006-04-06 11:46:21 +05:00 @@ -1530,6 +1530,9 @@ int STDCALL mysql_set_character_set(MYSQ { char buff[MY_CS_NAME_SIZE + 10]; charsets_dir= save_csdir; + /* Skip execution of "SET NAMES" for pre-4.1 servers */ + if (mysql_get_server_version(mysql) < 40100) + return 0; sprintf(buff, "SET NAMES %s", cs_name); if (!mysql_query(mysql, buff)) {