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
2c6789aa
Commit
2c6789aa
authored
Sep 01, 2009
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post push fix for bug#20577 and bug#46362, disabling warnings
parent
82a5cfa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
mysql-test/include/partition_date_range.inc
mysql-test/include/partition_date_range.inc
+6
-0
mysql-test/r/partition_pruning.result
mysql-test/r/partition_pruning.result
+8
-4
No files found.
mysql-test/include/partition_date_range.inc
View file @
2c6789aa
...
...
@@ -21,6 +21,8 @@ SELECT * FROM t1 WHERE a >= '1001-00-00';
SELECT
*
FROM
t1
WHERE
a
>
'1001-00-00'
;
--
sorted_result
SELECT
*
FROM
t1
WHERE
a
=
'1001-00-00'
;
--
echo
# Disabling warnings for the invalid date
--
disable_warnings
--
sorted_result
SELECT
*
FROM
t1
WHERE
a
<
'1999-02-31'
;
--
sorted_result
...
...
@@ -31,6 +33,7 @@ SELECT * FROM t1 WHERE a >= '1999-02-31';
SELECT
*
FROM
t1
WHERE
a
>
'1999-02-31'
;
--
sorted_result
SELECT
*
FROM
t1
WHERE
a
=
'1999-02-31'
;
--
enable_warnings
--
sorted_result
SELECT
*
FROM
t1
WHERE
a
BETWEEN
'0000-00-00'
AND
'1002-00-00'
;
--
sorted_result
...
...
@@ -51,11 +54,14 @@ EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-00-00';
EXPLAIN
PARTITIONS
SELECT
*
FROM
t1
WHERE
a
>=
'1001-00-00'
;
EXPLAIN
PARTITIONS
SELECT
*
FROM
t1
WHERE
a
>
'1001-00-00'
;
EXPLAIN
PARTITIONS
SELECT
*
FROM
t1
WHERE
a
=
'1001-00-00'
;
--
echo
# Disabling warnings for the invalid date
--
disable_warnings
EXPLAIN
PARTITIONS
SELECT
*
FROM
t1
WHERE
a
<
'1999-02-31'
;
EXPLAIN
PARTITIONS
SELECT
*
FROM
t1
WHERE
a
<=
'1999-02-31'
;
EXPLAIN
PARTITIONS
SELECT
*
FROM
t1
WHERE
a
>=
'1999-02-31'
;
EXPLAIN
PARTITIONS
SELECT
*
FROM
t1
WHERE
a
>
'1999-02-31'
;
EXPLAIN
PARTITIONS
SELECT
*
FROM
t1
WHERE
a
=
'1999-02-31'
;
--
enable_warnings
EXPLAIN
PARTITIONS
SELECT
*
FROM
t1
WHERE
a
BETWEEN
'0000-00-00'
AND
'1002-00-00'
;
EXPLAIN
PARTITIONS
SELECT
*
FROM
t1
WHERE
a
BETWEEN
'0000-00-00'
AND
'1001-01-01'
;
EXPLAIN
PARTITIONS
SELECT
*
FROM
t1
WHERE
a
BETWEEN
'0001-01-02'
AND
'1002-00-00'
;
...
...
mysql-test/r/partition_pruning.result
View file @
2c6789aa
...
...
@@ -58,6 +58,7 @@ a
SELECT * FROM t1 WHERE a = '1001-00-00';
a
1001-00-00
# Disabling warnings for the invalid date
SELECT * FROM t1 WHERE a < '1999-02-31';
a
0000-00-00
...
...
@@ -82,8 +83,6 @@ a
2001-01-01
SELECT * FROM t1 WHERE a = '1999-02-31';
a
Warning 1292 Incorrect date value: '1999-02-31' for column 'a' at row 1
Warnings:
SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
a
0000-00-00
...
...
@@ -139,6 +138,7 @@ id select_type table partitions type possible_keys key key_len ref rows Extra
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-00-00';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL ref a a 4 const 1 Using where; Using index
# Disabling warnings for the invalid date
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1999-02-31';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01,p2001-01-01 range a a 4 NULL 5 Using where; Using index
...
...
@@ -218,6 +218,7 @@ a
SELECT * FROM t1 WHERE a = '1001-00-00';
a
1001-00-00
# Disabling warnings for the invalid date
SELECT * FROM t1 WHERE a < '1999-02-31';
a
0000-00-00
...
...
@@ -297,6 +298,7 @@ id select_type table partitions type possible_keys key key_len ref rows Extra
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-00-00';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL ALL NULL NULL NULL NULL 7 Using where
# Disabling warnings for the invalid date
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1999-02-31';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01,p2001-01-01 ALL NULL NULL NULL NULL 7 Using where
...
...
@@ -385,6 +387,7 @@ a
SELECT * FROM t1 WHERE a = '1001-00-00';
a
1001-00-00
# Disabling warnings for the invalid date
SELECT * FROM t1 WHERE a < '1999-02-31';
a
0000-00-00
...
...
@@ -409,8 +412,6 @@ a
2001-01-01
SELECT * FROM t1 WHERE a = '1999-02-31';
a
Warning 1292 Incorrect date value: '1999-02-31' for column 'a' at row 1
Warnings:
SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
a
0000-00-00
...
...
@@ -466,6 +467,7 @@ id select_type table partitions type possible_keys key key_len ref rows Extra
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-00-00';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL ref a a 4 const 1 Using where; Using index
# Disabling warnings for the invalid date
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1999-02-31';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 5 Using where; Using index
...
...
@@ -545,6 +547,7 @@ a
SELECT * FROM t1 WHERE a = '1001-00-00';
a
1001-00-00
# Disabling warnings for the invalid date
SELECT * FROM t1 WHERE a < '1999-02-31';
a
0000-00-00
...
...
@@ -624,6 +627,7 @@ id select_type table partitions type possible_keys key key_len ref rows Extra
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-00-00';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL ALL NULL NULL NULL NULL 7 Using where
# Disabling warnings for the invalid date
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1999-02-31';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 ALL NULL NULL NULL NULL 7 Using where
...
...
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