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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
bb20af75
Commit
bb20af75
authored
Sep 15, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/11416-bug-5.0-mysql
parents
31566bd7
d01927dc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
mysql-test/r/view.result
mysql-test/r/view.result
+5
-0
mysql-test/t/view.test
mysql-test/t/view.test
+7
-0
sql/sql_view.cc
sql/sql_view.cc
+2
-0
No files found.
mysql-test/r/view.result
View file @
bb20af75
...
...
@@ -2205,6 +2205,11 @@ select * from (select f1 as f2 from v1) v where v.f2='a';
f2
drop view v1;
drop table t1;
create view v1 as SELECT CONVERT_TZ('2004-01-01 12:00:00','GMT','MET');
select * from v1;
CONVERT_TZ('2004-01-01 12:00:00','GMT','MET')
NULL
drop view v1;
CREATE TABLE t1 (date DATE NOT NULL);
INSERT INTO t1 VALUES ('2005-09-06');
CREATE VIEW v1 AS SELECT DAYNAME(date) FROM t1;
...
...
mysql-test/t/view.test
View file @
bb20af75
...
...
@@ -2087,6 +2087,13 @@ select * from (select f1 as f2 from v1) v where v.f2='a';
drop
view
v1
;
drop
table
t1
;
#
# Bug #11416 Server crash if using a view that uses function convert_tz
#
create
view
v1
as
SELECT
CONVERT_TZ
(
'2004-01-01 12:00:00'
,
'GMT'
,
'MET'
);
select
*
from
v1
;
drop
view
v1
;
#
# Bugs #12963, #13000: wrong creation of VIEW with DAYNAME, DAYOFWEEK, and WEEKDAY
#
...
...
sql/sql_view.cc
View file @
bb20af75
...
...
@@ -1069,6 +1069,8 @@ ok:
ok2:
if
(
arena
)
thd
->
restore_active_arena
(
arena
,
&
backup
);
if
(
!
old_lex
->
time_zone_tables_used
&&
thd
->
lex
->
time_zone_tables_used
)
old_lex
->
time_zone_tables_used
=
thd
->
lex
->
time_zone_tables_used
;
thd
->
lex
=
old_lex
;
DBUG_RETURN
(
0
);
...
...
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