List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:March 23 2011 1:43pm
Subject:bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4265)
View as plain text  
#At file:///data0/magnus/mysql/7.0-dist-priv/ based on revid:magnus.blaudd@strippedxyf

 4265 Magnus Blåudd	2011-03-23
      ndb dist priv
       - add table_schema="mysql"  to a few more I_S.-tables queries

    modified:
      storage/ndb/tools/ndb_dist_priv.sql
=== modified file 'storage/ndb/tools/ndb_dist_priv.sql'
--- a/storage/ndb/tools/ndb_dist_priv.sql	2011-03-23 13:19:00 +0000
+++ b/storage/ndb/tools/ndb_dist_priv.sql	2011-03-23 13:42:32 +0000
@@ -141,7 +141,9 @@ create procedure mysql.mysql_cluster_res
 begin
  declare no_users integer;
  declare local_backup bool default 0;
- select 1 into local_backup from information_schema.tables where table_name = "user_backup";
+ select 1 into local_backup
+   from information_schema.tables
+    where table_schema = "mysql" and table_name = "user_backup";
  if local_backup = 1 then
    select count(*) into no_users from user_backup;
    if no_users != 0 then
@@ -172,7 +174,9 @@ create procedure mysql.mysql_cluster_res
 begin
  declare no_users integer;
  declare distributed_backup bool default 0;
- select 1 into distributed_backup from information_schema.tables where table_name = "ndb_user_backup";
+ select 1 into distributed_backup
+   from information_schema.tables
+     where table_schema = "mysql" and table_name = "ndb_user_backup";
  if distributed_backup = 1 then
    select count(*) into no_users from ndb_user_backup;
    if no_users != 0 then

Attachment: [text/bzr-bundle] bzr/magnus.blaudd@oracle.com-20110323134232-tjut7tddw8d2fqwq.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4265) Magnus Blåudd23 Mar