diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-09-29 09:55:53 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-09-29 09:55:53 -0300 |
commit | aca9b35ffe6e00fbe872607eca64fe5eff6d2293 (patch) | |
tree | 9f27d633325188fc4fb5d168282898d3c8b9c795 /include/mysql.h | |
parent | 7f9656369f97803bb10a1111f60d60db295b82a4 (diff) | |
download | mariadb-git-aca9b35ffe6e00fbe872607eca64fe5eff6d2293.tar.gz |
Bug#41728: Dropped symbol but no soname change
Restore a stub of the removed mysql_odbc_escape_string function
to fix a ABI breakage. The function was intended to be private
and used only by Connector/ODBC, but, unfortunately, it was exported
as part of the ABI. Nonetheless, only a stub is restored as the
original function is inherently broken and shouldn't be used.
This restoration only applies to MySQL 5.0. This will be addressed
differently in later versions -- reworked library versioning.
include/mysql.h:
Restore mysql_odbc_escape_string prototype.
include/mysql_h.ic:
Update ABI check.
libmysql/libmysql.c:
Restore a mysql_odbc_escape_string stub.
libmysql/libmysql.def:
Restore mysql_odbc_escape_string.
libmysqld/libmysqld.def:
Restore mysql_odbc_escape_string.
Diffstat (limited to 'include/mysql.h')
-rw-r--r-- | include/mysql.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mysql.h b/include/mysql.h index f2303abb241..b3e0dc45496 100644 --- a/include/mysql.h +++ b/include/mysql.h @@ -550,6 +550,16 @@ unsigned long STDCALL mysql_real_escape_string(MYSQL *mysql, char *to,const char *from, unsigned long length); void STDCALL mysql_debug(const char *debug); +char * STDCALL mysql_odbc_escape_string(MYSQL *mysql, + char *to, + unsigned long to_length, + const char *from, + unsigned long from_length, + void *param, + char * + (*extend_buffer) + (void *, char *to, + unsigned long *length)); void STDCALL myodbc_remove_escape(MYSQL *mysql,char *name); unsigned int STDCALL mysql_thread_safe(void); my_bool STDCALL mysql_embedded(void); |