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
f2abf5f6
Commit
f2abf5f6
authored
Nov 29, 2010
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make suite/optimizer_unfixed_bugs/t/bug43617.test work in any timezone.
parent
d1afc20e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
mysql-test/suite/optimizer_unfixed_bugs/r/bug43617.result
mysql-test/suite/optimizer_unfixed_bugs/r/bug43617.result
+3
-0
mysql-test/suite/optimizer_unfixed_bugs/t/bug43617.test
mysql-test/suite/optimizer_unfixed_bugs/t/bug43617.test
+4
-1
No files found.
mysql-test/suite/optimizer_unfixed_bugs/r/bug43617.result
View file @
f2abf5f6
set storage_engine=innodb;
set @save_time_zone= @@time_zone;
set time_zone='+03:00';
set session debug="+d,optimizer_innodb_icp";
CREATE TABLE t1(c1 TIMESTAMP NOT NULL, c2 TIMESTAMP NULL, c3 DATE, c4 DATETIME, PRIMARY KEY(c1), UNIQUE INDEX(c2));
INSERT INTO t1 VALUES('98-12-31 11:30:45','98.12.31 11+30+45','98-12-31 11:30:45','98.12.31 11+30+45'),('98/12/30 11*30*45','98@12@30 11^30^45','98/12/30 11*30*45','98@12@30 11^30^45'),('98-12-29','98.12.29','98-12-29','98.12.29'),('98/12/28','98@12@28','98/12/28','98@12@28');
...
...
@@ -95,3 +97,4 @@ SELECT * FROM t1 WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07') ORDER
c1 c2 c3 c4
2038-01-09 03:14:07 2038-01-09 03:14:07 2009-01-05 2009-01-06 00:00:00
DROP TABLE t1;
set time_zone= @save_time_zone;
mysql-test/suite/optimizer_unfixed_bugs/t/bug43617.test
View file @
f2abf5f6
...
...
@@ -4,7 +4,8 @@
--
source
include
/
have_innodb
.
inc
set
storage_engine
=
innodb
;
set
@
save_time_zone
=
@@
time_zone
;
set
time_zone
=
'+03:00'
;
set
session
debug
=
"+d,optimizer_innodb_icp"
;
######## Running INSERT tests for TIMESTAMP ########
...
...
@@ -81,3 +82,5 @@ SELECT * FROM t1 WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07') ORDER
SELECT
*
FROM
t1
WHERE
c2
IN
(
'1971-01-01 00:00:01'
,
'2038-01-09 03:14:07'
)
ORDER
BY
c2
DESC
LIMIT
2
;
DROP
TABLE
t1
;
set
time_zone
=
@
save_time_zone
;
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