Bläddra i källkod

make mysqlhotcopy work with recent versions of DBD/mysql, part of the perl-dbi package

Christoph Schug 18 år sedan
förälder
incheckning
cae6ddf6d5
2 ändrade filer med 18 tillägg och 1 borttagningar
  1. 17 0
      mysql/mysql.patch
  2. 1 1
      mysql/mysql.spec

+ 17 - 0
mysql/mysql.patch

@@ -37,3 +37,20 @@ Index: scripts/mysql_system_tables_data.sql
  INSERT INTO db SELECT * FROM tmp_db WHERE @had_db_table=0;
  DROP TABLE tmp_db;
  
+______________________________________________________________________________
+
+Dirty hack to make mysqlhotcopy work with recent versions of DBD/mysql,
+see http://bugs.mysql.com/bug.php?id=27303
+
+Index: scripts/mysqlhotcopy.sh
+--- scripts/mysqlhotcopy.sh.orig	2007-07-04 15:06:25 +0200
++++ scripts/mysqlhotcopy.sh	2007-11-13 00:02:56 +0100
+@@ -834,6 +834,8 @@
+ 
+     my @dbh_tables = eval { $dbh->tables() };
+ 
++    map { s/^.*?\.//o } @dbh_tables;
++
+     ## Remove quotes around table names
+     my $quote = $dbh->get_info(29); # SQL_IDENTIFIER_QUOTE_CHAR
+     if ($quote) {

+ 1 - 1
mysql/mysql.spec

@@ -40,7 +40,7 @@ Class:        BASE
 Group:        Database
 License:      GPL
 Version:      %{V_opkg}
-Release:      20071010
+Release:      20071113
 
 #   package options
 %option       with_server      yes