List:Commits« Previous MessageNext Message »
From:Patrick Galbraith Date:April 9 2006 5:51pm
Subject:bk commit into 5.1 tree (patg:1.2302)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of patg. When patg 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
  1.2302 06/04/09 10:51:31 patg@stripped +3 -0
  WL# 3031
  
  Merge

  sql/mysql_priv.h
    1.392 06/04/09 10:51:27 patg@stripped +2 -1
    WL# 3031
    

  sql/Makefile.am
    1.133 06/04/09 10:51:27 patg@stripped +2 -2
    WL# 3031 
    
    Makefile changes for compiling sql_servers

  mysql-test/r/federated_server.result
    1.1 06/04/09 10:40:36 patg@stripped +112 -0

  mysql-test/r/federated_server.result
    1.0 06/04/09 10:40:36 patg@stripped +0 -0
    BitKeeper file /home/patg/mysql-build/mysql-5.1-wl3031/mysql-test/r/federated_server.result

# 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:	patg
# Host:	govinda.patg.net
# Root:	/home/patg/mysql-build/mysql-5.1-wl3031

--- 1.132/sql/Makefile.am	2006-04-08 14:47:20 -07:00
+++ 1.133/sql/Makefile.am	2006-04-09 10:51:27 -07:00
@@ -102,8 +102,8 @@
 			sp_cache.cc parse_file.cc sql_trigger.cc \
                         event_executor.cc event.cc event_timed.cc \
 			sql_plugin.cc sql_binlog.cc \
-			handlerton.cc sql_tablespace.cc \
-			handlerton.cc sql_tablespace.cc partition_info.cc
+			handlerton.cc sql_tablespace.cc partition_info.cc \
+			sql_servers.cc
 EXTRA_mysqld_SOURCES =	ha_innodb.cc ha_berkeley.cc ha_archive.cc \
 			ha_innodb.h  ha_berkeley.h  ha_archive.h \
 			ha_blackhole.cc ha_federated.cc ha_ndbcluster.cc \

--- 1.391/sql/mysql_priv.h	2006-04-08 14:08:50 -07:00
+++ 1.392/sql/mysql_priv.h	2006-04-09 10:51:27 -07:00
@@ -554,6 +554,7 @@
 LEX_USER *create_default_definer(THD *thd);
 LEX_USER *create_definer(THD *thd, LEX_STRING *user_name, LEX_STRING *host_name);
 
+
 enum enum_mysql_completiontype {
   ROLLBACK_RELEASE=-2, ROLLBACK=1,  ROLLBACK_AND_CHAIN=7,
   COMMIT_RELEASE=-1,   COMMIT=0,    COMMIT_AND_CHAIN=6
@@ -567,8 +568,8 @@
 #include "sql_acl.h"
 #include "tztime.h"
 #ifdef MYSQL_SERVER
-#include "opt_range.h"
 #include "sql_servers.h"
+#include "opt_range.h"
 
 #ifdef HAVE_QUERY_CACHE
 struct Query_cache_query_flags
--- New file ---
+++ mysql-test/r/federated_server.result	06/04/09 10:40:36
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
stop slave;
DROP DATABASE IF EXISTS federated;
CREATE DATABASE federated;
DROP DATABASE IF EXISTS federated;
CREATE DATABASE federated;
create database first_db;
create database second_db;
use first_db;
DROP TABLE IF EXISTS first_db.t1;
Warnings:
Note	1051	Unknown table 't1'
CREATE TABLE first_db.t1 (
`id` int(20) NOT NULL,
`name` varchar(64) NOT NULL default ''
    )
DEFAULT CHARSET=latin1;
use second_db;
DROP TABLE IF EXISTS second_db.t1;
Warnings:
Note	1051	Unknown table 't1'
CREATE TABLE second_db.t1 (
`id` int(20) NOT NULL,
`name` varchar(64) NOT NULL default ''
    )
DEFAULT CHARSET=latin1;
drop server if exists 'server_one';
create server 'server_one' foreign data wrapper 'mysql' options
(HOST '127.0.0.1',
DATABASE 'first_db',
USER 'root',
PASSWORD '',
PORT 9308,
SOCKET '',
OWNER 'root');
drop server if exists 'server_two';
create server 'server_two' foreign data wrapper 'mysql' options
(HOST '127.0.0.1',
DATABASE 'second_db',
USER 'root',
PASSWORD '',
PORT 9308,
SOCKET '',
OWNER 'root');
select * from mysql.servers;
Server_name	Host	Db	Username	Password	Port	Socket	Wrapper	Owner
test	localhost	test	root		0		mysql	root
server_one	127.0.0.1	first_db	root		9308		mysql	root
server_two	127.0.0.1	second_db	root		9308		mysql	root
DROP TABLE IF EXISTS federated.old;
Warnings:
Note	1051	Unknown table 'old'
CREATE TABLE federated.old (
`id` int(20) NOT NULL,
`name` varchar(64) NOT NULL default ''
    )
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
CONNECTION='mysql://root@stripped:9308/first_db/t1';
INSERT INTO federated.old (id, name) values (1, 'federated.old url');
SELECT * FROM federated.old;
id	name
1	federated.old url
DROP TABLE IF EXISTS federated.old2;
Warnings:
Note	1051	Unknown table 'old2'
CREATE TABLE federated.old2 (
`id` int(20) NOT NULL,
`name` varchar(64) NOT NULL default ''
    )
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
CONNECTION='mysql://root@stripped:9308/second_db/t1';
INSERT INTO federated.old2 (id, name) values (1, 'federated.old2 url');
DROP TABLE IF EXISTS federated.t1;
Warnings:
Note	1051	Unknown table 't1'
CREATE TABLE federated.t1 (
`id` int(20) NOT NULL,
`name` varchar(64) NOT NULL default ''
    )
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
CONNECTION='server_one';
INSERT INTO federated.t1 (id, name) values (1, 'server_one, new scheme');
SELECT * FROM federated.t1;
id	name
1	federated.old url
1	server_one, new scheme
ALTER SERVER 'server_one' options(DATABASE 'second_db');
flush tables;
INSERT INTO federated.t1 (id, name) values (1, 'server_two, new scheme');
SELECT * FROM federated.t1;
id	name
1	federated.old2 url
1	server_two, new scheme
drop table federated.t1;
drop server 'server_one';
drop server 'server_two';
select * from mysql.servers;
Server_name	Host	Db	Username	Password	Port	Socket	Wrapper	Owner
test	localhost	test	root		0		mysql	root
drop table first_db.t1;
drop table second_db.t1;
drop database first_db;
drop database second_db;
DROP TABLE IF EXISTS federated.t1;
DROP DATABASE IF EXISTS federated;
DROP TABLE IF EXISTS federated.t1;
DROP DATABASE IF EXISTS federated;

Thread
bk commit into 5.1 tree (patg:1.2302)Patrick Galbraith9 Apr