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
b8c2349c
Commit
b8c2349c
authored
Oct 12, 2011
by
Vinay Fisrekar
Browse files
Options
Browse Files
Download
Plain Diff
merge 5.1 -> 5.5
adjust/modify tests as they were failing if system time zone is set differently.
parents
d4b0897c
da604543
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
96 additions
and
11 deletions
+96
-11
mysql-test/suite/engines/funcs/r/de_calendar_range.result
mysql-test/suite/engines/funcs/r/de_calendar_range.result
+2
-0
mysql-test/suite/engines/funcs/r/in_calendar_2_unique_constraints_duplicate_update.result
.../in_calendar_2_unique_constraints_duplicate_update.result
+2
-0
mysql-test/suite/engines/funcs/r/in_calendar_pk_constraint_duplicate_update.result
...funcs/r/in_calendar_pk_constraint_duplicate_update.result
+2
-0
mysql-test/suite/engines/funcs/r/in_calendar_pk_constraint_error.result
...te/engines/funcs/r/in_calendar_pk_constraint_error.result
+2
-0
mysql-test/suite/engines/funcs/r/in_calendar_pk_constraint_ignore.result
...e/engines/funcs/r/in_calendar_pk_constraint_ignore.result
+2
-0
mysql-test/suite/engines/funcs/r/in_calendar_unique_constraint_duplicate_update.result
...s/r/in_calendar_unique_constraint_duplicate_update.result
+2
-0
mysql-test/suite/engines/funcs/r/in_calendar_unique_constraint_error.result
...ngines/funcs/r/in_calendar_unique_constraint_error.result
+2
-0
mysql-test/suite/engines/funcs/r/in_calendar_unique_constraint_ignore.result
...gines/funcs/r/in_calendar_unique_constraint_ignore.result
+2
-0
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_pk_constraint_duplicate_update.result
...ulticolumn_calendar_pk_constraint_duplicate_update.result
+2
-0
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_pk_constraint_error.result
...uncs/r/in_multicolumn_calendar_pk_constraint_error.result
+2
-0
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_pk_constraint_ignore.result
...ncs/r/in_multicolumn_calendar_pk_constraint_ignore.result
+2
-0
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_unique_constraint_duplicate_update.result
...column_calendar_unique_constraint_duplicate_update.result
+2
-0
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_unique_constraint_error.result
.../r/in_multicolumn_calendar_unique_constraint_error.result
+2
-0
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_unique_constraint_ignore.result
...r/in_multicolumn_calendar_unique_constraint_ignore.result
+2
-0
mysql-test/suite/engines/funcs/r/in_multicolumn_number_pk_constraint_duplicate_update.result
..._multicolumn_number_pk_constraint_duplicate_update.result
+2
-0
mysql-test/suite/engines/funcs/r/up_calendar_range.result
mysql-test/suite/engines/funcs/r/up_calendar_range.result
+2
-0
mysql-test/suite/engines/funcs/t/de_calendar_range.test
mysql-test/suite/engines/funcs/t/de_calendar_range.test
+4
-1
mysql-test/suite/engines/funcs/t/in_calendar_2_unique_constraints_duplicate_update.test
.../t/in_calendar_2_unique_constraints_duplicate_update.test
+4
-0
mysql-test/suite/engines/funcs/t/in_calendar_pk_constraint_duplicate_update.test
...s/funcs/t/in_calendar_pk_constraint_duplicate_update.test
+4
-1
mysql-test/suite/engines/funcs/t/in_calendar_pk_constraint_error.test
...uite/engines/funcs/t/in_calendar_pk_constraint_error.test
+4
-1
mysql-test/suite/engines/funcs/t/in_calendar_pk_constraint_ignore.test
...ite/engines/funcs/t/in_calendar_pk_constraint_ignore.test
+4
-0
mysql-test/suite/engines/funcs/t/in_calendar_unique_constraint_duplicate_update.test
...ncs/t/in_calendar_unique_constraint_duplicate_update.test
+4
-1
mysql-test/suite/engines/funcs/t/in_calendar_unique_constraint_error.test
.../engines/funcs/t/in_calendar_unique_constraint_error.test
+4
-1
mysql-test/suite/engines/funcs/t/in_calendar_unique_constraint_ignore.test
...engines/funcs/t/in_calendar_unique_constraint_ignore.test
+4
-1
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_pk_constraint_duplicate_update.test
..._multicolumn_calendar_pk_constraint_duplicate_update.test
+4
-0
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_pk_constraint_error.test
.../funcs/t/in_multicolumn_calendar_pk_constraint_error.test
+4
-1
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_pk_constraint_ignore.test
...funcs/t/in_multicolumn_calendar_pk_constraint_ignore.test
+4
-1
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_unique_constraint_duplicate_update.test
...ticolumn_calendar_unique_constraint_duplicate_update.test
+4
-1
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_unique_constraint_error.test
...cs/t/in_multicolumn_calendar_unique_constraint_error.test
+4
-1
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_unique_constraint_ignore.test
...s/t/in_multicolumn_calendar_unique_constraint_ignore.test
+4
-0
mysql-test/suite/engines/funcs/t/in_multicolumn_number_pk_constraint_duplicate_update.test
...in_multicolumn_number_pk_constraint_duplicate_update.test
+4
-0
mysql-test/suite/engines/funcs/t/up_calendar_range.test
mysql-test/suite/engines/funcs/t/up_calendar_range.test
+4
-1
No files found.
mysql-test/suite/engines/funcs/r/de_calendar_range.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1,t2,t3;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NOT NULL PRIMARY KEY);
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW());
...
...
@@ -89,3 +90,4 @@ c1
2007-02-16 12:10:34
2007-02-17 13:10:34
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_calendar_2_unique_constraints_duplicate_update.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NOT NULL, c2 DATE NULL, c3 DATE NULL, PRIMARY KEY(c1), UNIQUE(c2));
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'4 04:01:01'),NOW());
...
...
@@ -128,3 +129,4 @@ c1 c2 c3
2003 2001 2000
2004 2000 2000
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_calendar_pk_constraint_duplicate_update.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NOT NULL PRIMARY KEY);
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW());
...
...
@@ -82,3 +83,4 @@ c1
2000
2011
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_calendar_pk_constraint_error.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NOT NULL PRIMARY KEY);
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW());
...
...
@@ -87,3 +88,4 @@ c1
1999
2000
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_calendar_pk_constraint_ignore.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NOT NULL PRIMARY KEY);
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW());
...
...
@@ -87,3 +88,4 @@ c1
1999
2000
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_calendar_unique_constraint_duplicate_update.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NULL UNIQUE);
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW());
...
...
@@ -82,3 +83,4 @@ c1
2000
2011
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_calendar_unique_constraint_error.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NULL UNIQUE);
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW());
...
...
@@ -87,3 +88,4 @@ c1
1999
2000
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_calendar_unique_constraint_ignore.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NULL UNIQUE);
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW());
...
...
@@ -81,3 +82,4 @@ c1
1999
2000
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_pk_constraint_duplicate_update.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NOT NULL, c2 DATE NOT NULL, c3 DATE NOT NULL, PRIMARY KEY(c1,c2,c3));
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
...
...
@@ -144,3 +145,4 @@ c1 c2 c3
2011 2011 2000
2011 2011 2011
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_pk_constraint_error.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NOT NULL, c2 DATE NOT NULL, c3 DATE NOT NULL, PRIMARY KEY(c1,c2,c3));
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
...
...
@@ -147,3 +148,4 @@ c1 c2 c3
1999 2000 1999
2000 1999 1999
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_pk_constraint_ignore.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NOT NULL, c2 DATE NOT NULL, c3 DATE NOT NULL, PRIMARY KEY(c1,c2,c3));
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
...
...
@@ -147,3 +148,4 @@ c1 c2 c3
1999 2000 1999
2000 1999 1999
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_unique_constraint_duplicate_update.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NULL, c2 DATE NULL, c3 DATE NULL, UNIQUE(c1,c2,c3));
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
...
...
@@ -144,3 +145,4 @@ c1 c2 c3
2011 2011 2000
2011 2011 2011
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_unique_constraint_error.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NULL, c2 DATE NULL, c3 DATE NULL, UNIQUE(c1,c2,c3));
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
...
...
@@ -147,3 +148,4 @@ c1 c2 c3
1999 2000 1999
2000 1999 1999
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_multicolumn_calendar_unique_constraint_ignore.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NULL, c2 DATE NULL, c3 DATE NULL, UNIQUE(c1,c2,c3));
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
...
...
@@ -139,3 +140,4 @@ c1 c2 c3
1999 2000 1999
2000 1999 1999
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/in_multicolumn_number_pk_constraint_duplicate_update.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NOT NULL, c2 DATE NOT NULL, c3 DATE NOT NULL, PRIMARY KEY(c1,c2,c3));
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
...
...
@@ -144,3 +145,4 @@ c1 c2 c3
2011 2011 2000
2011 2011 2011
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/r/up_calendar_range.result
View file @
b8c2349c
DROP TABLE IF EXISTS t1,t2,t3;
SET TIME_ZONE="+03:00";
CREATE TABLE t1(c1 DATE NOT NULL);
SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW());
...
...
@@ -104,3 +105,4 @@ c1
2007-02-13 09:09:33
2007-02-14 10:10:34
DROP TABLE t1;
SET TIME_ZONE= @@global.time_zone;
mysql-test/suite/engines/funcs/t/de_calendar_range.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
,
t2
,
t3
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NOT
NULL
PRIMARY
KEY
);
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
)
VALUES
(
NOW
());
...
...
@@ -45,4 +47,5 @@ SELECT * FROM t1 ORDER BY c1;
DELETE
FROM
t1
WHERE
c1
<=
ADDTIME
(
NOW
(),
'2 02:01:01'
);
SELECT
*
FROM
t1
ORDER
BY
c1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_calendar_2_unique_constraints_duplicate_update.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NOT
NULL
,
c2
DATE
NULL
,
c3
DATE
NULL
,
PRIMARY
KEY
(
c1
),
UNIQUE
(
c2
));
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
,
c2
,
c3
)
VALUES
(
NOW
(),
ADDTIME
(
NOW
(),
'4 04:01:01'
),
NOW
());
...
...
@@ -70,4 +72,6 @@ INSERT INTO t1 (c1,c2,c3) VALUES(2000,2000,2000) ON DUPLICATE KEY UPDATE c3=2011
--
sorted_result
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_calendar_pk_constraint_duplicate_update.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NOT
NULL
PRIMARY
KEY
);
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
)
VALUES
(
NOW
());
...
...
@@ -61,4 +63,5 @@ INSERT INTO t1 (c1) VALUES(1999) ON DUPLICATE KEY UPDATE c1=2011;
--
sorted_result
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_calendar_pk_constraint_error.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NOT
NULL
PRIMARY
KEY
);
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
)
VALUES
(
NOW
());
...
...
@@ -61,4 +63,5 @@ INSERT INTO t1 (c1) VALUES(2000);
INSERT
INTO
t1
(
c1
)
VALUES
(
1999
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_calendar_pk_constraint_ignore.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NOT
NULL
PRIMARY
KEY
);
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
)
VALUES
(
NOW
());
...
...
@@ -61,4 +63,6 @@ INSERT INTO t1 (c1) VALUES(2000);
INSERT
INTO
t1
(
c1
)
VALUES
(
1999
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_calendar_unique_constraint_duplicate_update.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NULL
UNIQUE
);
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
)
VALUES
(
NOW
());
...
...
@@ -61,4 +63,5 @@ INSERT INTO t1 (c1) VALUES(1999) ON DUPLICATE KEY UPDATE c1=2011;
--
sorted_result
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_calendar_unique_constraint_error.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NULL
UNIQUE
);
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
)
VALUES
(
NOW
());
...
...
@@ -61,4 +63,5 @@ INSERT INTO t1 (c1) VALUES(2000);
INSERT
INTO
t1
(
c1
)
VALUES
(
1999
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_calendar_unique_constraint_ignore.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NULL
UNIQUE
);
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
)
VALUES
(
NOW
());
...
...
@@ -53,4 +55,5 @@ INSERT INTO t1 (c1) VALUES(2000);
INSERT
IGNORE
INTO
t1
(
c1
)
VALUES
(
1999
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
#restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_pk_constraint_duplicate_update.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NOT
NULL
,
c2
DATE
NOT
NULL
,
c3
DATE
NOT
NULL
,
PRIMARY
KEY
(
c1
,
c2
,
c3
));
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
,
c2
,
c3
)
VALUES
(
NOW
(),
NOW
(),
NOW
());
...
...
@@ -85,4 +87,6 @@ INSERT INTO t1 (c1,c2,c3) VALUES(1999,1999,2000) ON DUPLICATE KEY UPDATE c1=2011
--
sorted_result
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_pk_constraint_error.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NOT
NULL
,
c2
DATE
NOT
NULL
,
c3
DATE
NOT
NULL
,
PRIMARY
KEY
(
c1
,
c2
,
c3
));
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
,
c2
,
c3
)
VALUES
(
NOW
(),
NOW
(),
NOW
());
...
...
@@ -93,4 +95,5 @@ INSERT INTO t1 (c1,c2,c3) VALUES(1999,1999,1999);
INSERT
INTO
t1
(
c1
,
c2
,
c3
)
VALUES
(
1999
,
1999
,
2000
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_pk_constraint_ignore.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NOT
NULL
,
c2
DATE
NOT
NULL
,
c3
DATE
NOT
NULL
,
PRIMARY
KEY
(
c1
,
c2
,
c3
));
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
,
c2
,
c3
)
VALUES
(
NOW
(),
NOW
(),
NOW
());
...
...
@@ -93,4 +95,5 @@ INSERT INTO t1 (c1,c2,c3) VALUES(1999,1999,1999);
INSERT
INTO
t1
(
c1
,
c2
,
c3
)
VALUES
(
1999
,
1999
,
2000
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_unique_constraint_duplicate_update.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NULL
,
c2
DATE
NULL
,
c3
DATE
NULL
,
UNIQUE
(
c1
,
c2
,
c3
));
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
,
c2
,
c3
)
VALUES
(
NOW
(),
NOW
(),
NOW
());
...
...
@@ -85,4 +87,5 @@ INSERT INTO t1 (c1,c2,c3) VALUES(1999,1999,2000) ON DUPLICATE KEY UPDATE c1=2011
--
sorted_result
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_unique_constraint_error.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NULL
,
c2
DATE
NULL
,
c3
DATE
NULL
,
UNIQUE
(
c1
,
c2
,
c3
));
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
,
c2
,
c3
)
VALUES
(
NOW
(),
NOW
(),
NOW
());
...
...
@@ -93,4 +95,5 @@ INSERT INTO t1 (c1,c2,c3) VALUES(1999,1999,1999);
INSERT
INTO
t1
(
c1
,
c2
,
c3
)
VALUES
(
1999
,
1999
,
2000
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_multicolumn_calendar_unique_constraint_ignore.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NULL
,
c2
DATE
NULL
,
c3
DATE
NULL
,
UNIQUE
(
c1
,
c2
,
c3
));
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
,
c2
,
c3
)
VALUES
(
NOW
(),
NOW
(),
NOW
());
...
...
@@ -85,4 +87,6 @@ INSERT IGNORE INTO t1 (c1,c2,c3) VALUES(1999,1999,2000);
--
sorted_result
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/in_multicolumn_number_pk_constraint_duplicate_update.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NOT
NULL
,
c2
DATE
NOT
NULL
,
c3
DATE
NOT
NULL
,
PRIMARY
KEY
(
c1
,
c2
,
c3
));
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
,
c2
,
c3
)
VALUES
(
NOW
(),
NOW
(),
NOW
());
...
...
@@ -93,4 +95,6 @@ INSERT INTO t1 (c1,c2,c3) VALUES(1999,1999,2000) ON DUPLICATE KEY UPDATE c1=2011
--
sorted_result
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
time_zone
;
mysql-test/suite/engines/funcs/t/up_calendar_range.test
View file @
b8c2349c
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
,
t2
,
t3
;
--
enable_warnings
# Set Correct timezone to match result
SET
TIME_ZONE
=
"+03:00"
;
CREATE
TABLE
t1
(
c1
DATE
NOT
NULL
);
SET
TIMESTAMP
=
1171346973
;
# 2007-02-13 15:09:33
INSERT
INTO
t1
(
c1
)
VALUES
(
NOW
());
...
...
@@ -53,4 +55,5 @@ UPDATE t1 SET c1 = NOW() WHERE c1 >= ADDTIME(NOW(),'2 02:01:01');
--
sorted_result
SELECT
*
FROM
t1
ORDER
BY
c1
;
DROP
TABLE
t1
;
# Restore timezone to default
SET
TIME_ZONE
=
@@
global
.
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