Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3023ee94
Commit
3023ee94
authored
Oct 10, 2007
by
gluh@eagle.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt
into mysql.com:/home/gluh/MySQL/Merge/5.1-opt
parents
1566f370
a5e7b726
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
23 deletions
+25
-23
mysql-test/r/view.result
mysql-test/r/view.result
+8
-9
mysql-test/suite/rpl/r/rpl_flushlog_loop.result
mysql-test/suite/rpl/r/rpl_flushlog_loop.result
+7
-0
mysql-test/suite/rpl/t/rpl_flushlog_loop.test
mysql-test/suite/rpl/t/rpl_flushlog_loop.test
+3
-6
mysql-test/t/view.test
mysql-test/t/view.test
+7
-8
No files found.
mysql-test/r/view.result
View file @
3023ee94
...
...
@@ -2701,19 +2701,18 @@ CREATE TABLE t1(
fName varchar(25) NOT NULL,
lName varchar(25) NOT NULL,
DOB date NOT NULL,
test_date date NOT NULL,
uID int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY);
INSERT INTO t1(fName, lName, DOB) VALUES
('Hank', 'Hill', '1964-09-29'),
('Tom', 'Adams', '1908-02-14'),
('Homer', 'Simpson', '1968-03-05');
INSERT INTO t1(fName, lName, DOB
, test_date
) VALUES
('Hank', 'Hill', '1964-09-29'
, '2007-01-01'
),
('Tom', 'Adams', '1908-02-14'
, '2007-01-01'
),
('Homer', 'Simpson', '1968-03-05'
, '2007-01-01'
);
CREATE VIEW v1 AS
SELECT (year(
now()
)-year(DOB)) AS Age
SELECT (year(
test_date
)-year(DOB)) AS Age
FROM t1 HAVING Age < 75;
SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select (year(now()) - year(`t1`.`DOB`)) AS `Age` from `t1` having (`Age` < 75) latin1 latin1_swedish_ci
set timestamp=1136066400;
SELECT (year(now())-year(DOB)) AS Age FROM t1 HAVING Age < 75;
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select (year(`t1`.`test_date`) - year(`t1`.`DOB`)) AS `Age` from `t1` having (`Age` < 75)
SELECT (year(test_date)-year(DOB)) AS Age FROM t1 HAVING Age < 75;
Age
42
38
...
...
mysql-test/suite/rpl/r/rpl_flushlog_loop.result
View file @
3023ee94
...
...
@@ -4,6 +4,13 @@ reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
show variables like 'relay_log%';
Variable_name Value
relay_log MYSQLTEST_VARDIR/master-data/relay-log
relay_log_index
relay_log_info_file relay-log.info
relay_log_purge ON
relay_log_space_limit 0
stop slave;
change master to master_host='127.0.0.1',master_user='root',
master_password='',master_port=MASTER_PORT;
...
...
mysql-test/suite/rpl/t/rpl_flushlog_loop.test
View file @
3023ee94
...
...
@@ -2,12 +2,9 @@
# in case of bi-directional replication
--
source
include
/
master
-
slave
.
inc
#
# Start replication master -> slave
#
# We have to sync with master, to ensure slave had time to start properly
# before we stop it. If not, we get errors about UNIX_TIMESTAMP() in the log.
sync_slave_with_master
;
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
show
variables
like
'relay_log%'
;
connection
slave
;
--
disable_warnings
stop
slave
;
...
...
mysql-test/t/view.test
View file @
3023ee94
...
...
@@ -2549,21 +2549,20 @@ CREATE TABLE t1(
fName
varchar
(
25
)
NOT
NULL
,
lName
varchar
(
25
)
NOT
NULL
,
DOB
date
NOT
NULL
,
test_date
date
NOT
NULL
,
uID
int
unsigned
NOT
NULL
AUTO_INCREMENT
PRIMARY
KEY
);
INSERT
INTO
t1
(
fName
,
lName
,
DOB
)
VALUES
(
'Hank'
,
'Hill'
,
'1964-09-29'
),
(
'Tom'
,
'Adams'
,
'1908-02-14'
),
(
'Homer'
,
'Simpson'
,
'1968-03-05'
);
INSERT
INTO
t1
(
fName
,
lName
,
DOB
,
test_date
)
VALUES
(
'Hank'
,
'Hill'
,
'1964-09-29'
,
'2007-01-01'
),
(
'Tom'
,
'Adams'
,
'1908-02-14'
,
'2007-01-01'
),
(
'Homer'
,
'Simpson'
,
'1968-03-05'
,
'2007-01-01'
);
CREATE
VIEW
v1
AS
SELECT
(
year
(
now
()
)
-
year
(
DOB
))
AS
Age
SELECT
(
year
(
test_date
)
-
year
(
DOB
))
AS
Age
FROM
t1
HAVING
Age
<
75
;
SHOW
CREATE
VIEW
v1
;
set
timestamp
=
1136066400
;
SELECT
(
year
(
now
())
-
year
(
DOB
))
AS
Age
FROM
t1
HAVING
Age
<
75
;
set
timestamp
=
1136066400
;
SELECT
(
year
(
test_date
)
-
year
(
DOB
))
AS
Age
FROM
t1
HAVING
Age
<
75
;
SELECT
*
FROM
v1
;
DROP
VIEW
v1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment