aboutsummaryrefslogtreecommitdiff
path: root/development/mysql-workbench/copytable.patch
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-23 17:12:12 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-28 05:45:36 +0700
commit58275bd2a03fe541f1f7c4852c1828c34f32ab5f (patch)
tree365a35c55279be45319b754a176bfa10d3610ea5 /development/mysql-workbench/copytable.patch
parent723a78e3488d101c908681587b58ef2b589392e5 (diff)
development/mysql-workbench: Updated for version 6.3.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/mysql-workbench/copytable.patch')
-rw-r--r--development/mysql-workbench/copytable.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/development/mysql-workbench/copytable.patch b/development/mysql-workbench/copytable.patch
new file mode 100644
index 000000000000..fbdd928bc822
--- /dev/null
+++ b/development/mysql-workbench/copytable.patch
@@ -0,0 +1,18 @@
+--- mysql-workbench-community-6.3.8-src/plugins/migration/copytable/copytable.cpp.orig 2016-10-23 15:39:11.356781884 +0700
++++ mysql-workbench-community-6.3.8-src/plugins/migration/copytable/copytable.cpp 2016-10-23 15:39:36.864471189 +0700
+@@ -2847,14 +2847,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
++ ret_length += mysql_real_escape_string(_mysql, buffer + length, data, (unsigned long)dlength);
+
+ if( ret_length != (unsigned long) -1)
+ length += ret_length;