summaryrefslogtreecommitdiff
path: root/libmysql/libmysql.c
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2009-09-29 09:55:53 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2009-09-29 09:55:53 -0300
commit344cd04b1ec15b8ccea834381b4668f86d6822d5 (patch)
tree9f27d633325188fc4fb5d168282898d3c8b9c795 /libmysql/libmysql.c
parent406e680b25806d607d184f2484dd15231daa5392 (diff)
downloadmariadb-git-344cd04b1ec15b8ccea834381b4668f86d6822d5.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.
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r--libmysql/libmysql.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 1fa3181b1be..92a90ba79b3 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -1613,6 +1613,18 @@ mysql_real_escape_string(MYSQL *mysql, char *to,const char *from,
return escape_string_for_mysql(mysql->charset, to, 0, from, length);
}
+
+char * STDCALL
+mysql_odbc_escape_string(MYSQL *mysql,
+ char *to, ulong to_length,
+ const char *from, ulong from_length,
+ void *param,
+ char * (*extend_buffer)
+ (void *, char *, ulong *))
+{
+ return NULL;
+}
+
void STDCALL
myodbc_remove_escape(MYSQL *mysql,char *name)
{