List:Commits« Previous MessageNext Message »
From:kroki Date:August 9 2006 12:37pm
Subject:bk commit into 5.1 tree (kroki:1.2268)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of tomash. When tomash does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-08-09 16:37:26+04:00, kroki@stripped +1 -0
  Post-merge fix.

  sql/sql_parse.cc@stripped, 2006-08-09 16:37:21+04:00, kroki@stripped +3 -6
    Post-merge fix.  No need to check DB name twice.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	kroki
# Host:	moonlight.intranet
# Root:	/home/tomash/src/mysql_ab/mysql-5.1-merge

--- 1.576/sql/sql_parse.cc	2006-08-09 16:37:37 +04:00
+++ 1.577/sql/sql_parse.cc	2006-08-09 16:37:37 +04:00
@@ -6385,7 +6385,9 @@ TABLE_LIST *st_select_lex::add_table_to_
     my_error(ER_WRONG_TABLE_NAME, MYF(0), table->table.str);
     DBUG_RETURN(0);
   }
-  if (table->db.str && check_db_name(table->db.str))
+
+  if (table->is_derived_table() == FALSE && table->db.str &&
+      check_db_name(table->db.str))
   {
     my_error(ER_WRONG_DB_NAME, MYF(0), table->db.str);
     DBUG_RETURN(0);
@@ -6406,11 +6408,6 @@ TABLE_LIST *st_select_lex::add_table_to_
     DBUG_RETURN(0);				/* purecov: inspected */
   if (table->db.str)
   {
-    if (table->is_derived_table() == FALSE && check_db_name(table->db.str))
-    {
-      my_error(ER_WRONG_DB_NAME, MYF(0), table->db.str);
-      DBUG_RETURN(0);
-    }
     ptr->db= table->db.str;
     ptr->db_length= table->db.length;
   }
Thread
bk commit into 5.1 tree (kroki:1.2268)kroki9 Aug