summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2006-04-06 12:43:13 +0500
committerunknown <bar@mysql.com>2006-04-06 12:43:13 +0500
commitf53c12c83316b6e0904dcd503e5e7ea297956bbc (patch)
tree0bd29b6844ad31569aeb5b34188db72480d8f5bb /sql-common
parent4ec04797052277af082f976b5c817b4c402a6519 (diff)
downloadmariadb-git-f53c12c83316b6e0904dcd503e5e7ea297956bbc.tar.gz
client.c:
Bug#18830 incompatibility new libraries with old server Additional 5.0 fix: applying the same patch to client.c. sql-common/client.c: Bug#18830 incompatibility new libraries with old server Additional 5.0 fix: applying the same patch to client.c.
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index cd50960164b..e7e74795fa0 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -2836,6 +2836,9 @@ int STDCALL mysql_set_character_set(MYSQL *mysql, const char *cs_name)
{
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_real_query(mysql, buff, strlen(buff)))
{