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
acb9ba8a
Commit
acb9ba8a
authored
Nov 29, 2010
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make suite/optimizer_unfixed_bugs/t/bug43618.test work in any timezone.
parent
f2abf5f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
mysql-test/suite/optimizer_unfixed_bugs/r/bug43618.result
mysql-test/suite/optimizer_unfixed_bugs/r/bug43618.result
+3
-0
mysql-test/suite/optimizer_unfixed_bugs/t/bug43618.test
mysql-test/suite/optimizer_unfixed_bugs/t/bug43618.test
+3
-0
No files found.
mysql-test/suite/optimizer_unfixed_bugs/r/bug43618.result
View file @
acb9ba8a
set @save_time_zone= @@time_zone;
set time_zone='+03:00';
CREATE TABLE t1(c1 TIMESTAMP NOT NULL, c2 TIMESTAMP NULL, c3 DATE, c4 DATETIME, PRIMARY KEY(c1), UNIQUE INDEX(c2));
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');
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');
Warnings:
Warnings:
...
@@ -52,3 +54,4 @@ Warnings:
...
@@ -52,3 +54,4 @@ Warnings:
Warning 1292 Incorrect datetime value: '2010-10-00 00:00:00' for column 'c2' at row 1
Warning 1292 Incorrect datetime value: '2010-10-00 00:00:00' for column 'c2' at row 1
Warning 1292 Incorrect datetime value: '2010-10-00 00:00:00' for column 'c2' at row 1
Warning 1292 Incorrect datetime value: '2010-10-00 00:00:00' for column 'c2' at row 1
DROP TABLE t1;
DROP TABLE t1;
set time_zone= @save_time_zone;
mysql-test/suite/optimizer_unfixed_bugs/t/bug43618.test
View file @
acb9ba8a
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
--
source
include
/
have_debug
.
inc
--
source
include
/
have_debug
.
inc
set
@
save_time_zone
=
@@
time_zone
;
set
time_zone
=
'+03:00'
;
# bug goes away with
# bug goes away with
#set session debug="+d,optimizer_no_icp";
#set session debug="+d,optimizer_no_icp";
...
@@ -43,4 +45,5 @@ SELECT * FROM t1;
...
@@ -43,4 +45,5 @@ SELECT * FROM t1;
SELECT
*
FROM
t1
WHERE
c1
BETWEEN
'0000-00-00'
AND
'2010-00-01 00:00:00'
ORDER
BY
c1
DESC
LIMIT
2
;
SELECT
*
FROM
t1
WHERE
c1
BETWEEN
'0000-00-00'
AND
'2010-00-01 00:00:00'
ORDER
BY
c1
DESC
LIMIT
2
;
SELECT
*
FROM
t1
WHERE
c2
BETWEEN
'1971-01-01 00:00:01'
AND
'2010-10-00 00:00:00'
ORDER
BY
c2
DESC
LIMIT
2
;
SELECT
*
FROM
t1
WHERE
c2
BETWEEN
'1971-01-01 00:00:01'
AND
'2010-10-00 00:00:00'
ORDER
BY
c2
DESC
LIMIT
2
;
DROP
TABLE
t1
;
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