summaryrefslogtreecommitdiff
path: root/libmysql/rpm_support.cc
blob: 8c9a1e8683d55bfe568c3336d1cf4fdf4445ec09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
  Provide aliases for several symbols, to support drop-in replacement for
  MariaDB on Fedora and several derives distributions.

  These distributions redefine several symbols (in a way that is no compatible
  with either MySQL or MariaDB) and export it from the client library ( as seen
  e.g from this patch)
http://lists.fedoraproject.org/pipermail/scm-commits/2010-December/537257.html

  MariaDB handles compatibility distribution by providing the same symbols from 
  the client library if it is built with -DRPM

*/
#include <errmsg.h>
#include <my_sys.h>
#include <mysql.h>
extern "C" {

CHARSET_INFO *mysql_default_charset_info = default_charset_info;

CHARSET_INFO *mysql_get_charset(uint cs_number, myf flags)
{
  return get_charset(cs_number, flags);
}

CHARSET_INFO *mysql_get_charset_by_csname(const char *cs_name,
                                           uint cs_flags, myf my_flags)
{
   return get_charset_by_csname(cs_name, cs_flags, my_flags);
}


my_bool mysql_net_realloc(NET *net, size_t length)
{
   return net_realloc(net,length);
}

const char **mysql_client_errors = client_errors;

} /*extern "C" */