mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-02 13:04:42 +01:00
dc610d7563
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
17 lines
878 B
Diff
17 lines
878 B
Diff
--- mysql-workbench-community-6.3.9-src/plugins/migration/copytable/copytable.cpp.orig 2017-02-08 22:15:34.084153506 +0700
|
|
+++ mysql-workbench-community-6.3.9-src/plugins/migration/copytable/copytable.cpp 2017-02-08 22:23:01.194114625 +0700
|
|
@@ -2611,14 +2606,7 @@
|
|
// This is needed because the escaping depends on the character set in use by the server
|
|
unsigned long ret_length = 0;
|
|
|
|
-#if MYSQL_CHECK_VERSION(5, 7, 6)
|
|
- if (_target->is_mysql_version_at_least(5, 7, 6))
|
|
- ret_length += mysql_real_escape_string_quote(_mysql, buffer + length, data, (unsigned long)dlength, '"');
|
|
- else
|
|
- ret_length += mysql_real_escape_string(_mysql, buffer + length, data, (unsigned long)dlength);
|
|
-#else
|
|
ret_length += mysql_real_escape_string(_mysql, buffer + length, data, (unsigned long)dlength);
|
|
-#endif
|
|
|
|
if (ret_length != (unsigned long)-1)
|
|
length += ret_length;
|