summaryrefslogtreecommitdiffstats
path: root/is_prefix.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2011-05-09 17:33:54 +0200
committerRemi Collet <fedora@famillecollet.com>2011-05-09 17:33:54 +0200
commite5d74ab9460be98422c6eab9a8a41a24f692719b (patch)
tree3be1fef440ccd9260cbd786ef36ebbe779cdec51 /is_prefix.patch
parent2334071588b6d7c70d28c6893b2a19d7aefe8144 (diff)
perl-DBD-MySQL: workarond for https://bugzilla.redhat.com/703185HEADmaster
Diffstat (limited to 'is_prefix.patch')
-rw-r--r--is_prefix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/is_prefix.patch b/is_prefix.patch
new file mode 100644
index 0000000..d573c6c
--- /dev/null
+++ b/is_prefix.patch
@@ -0,0 +1,12 @@
+diff -up DBD-mysql-4.018/mysql.xs.orig DBD-mysql-4.018/mysql.xs
+--- DBD-mysql-4.018/mysql.xs.orig 2011-05-09 17:22:51.607043049 +0200
++++ DBD-mysql-4.018/mysql.xs 2011-05-09 17:23:19.895077638 +0200
+@@ -721,7 +721,7 @@ dbd_mysql_get_info(dbh, sql_info_type)
+ case SQL_IDENTIFIER_QUOTE_CHAR:
+ /*XXX What about a DB started in ANSI mode? */
+ /* Swiped from MyODBC's get_info.c */
+- using_322=is_prefix(mysql_get_server_info(imp_dbh->pmysql),"3.22");
++ using_322=0;
+ retsv = newSVpv(!using_322 ? "`" : " ", 1);
+ break;
+ case SQL_MAXIMUM_STATEMENT_LENGTH: