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
e33e27a6
Commit
e33e27a6
authored
Oct 01, 2010
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor update of test to pass both with and without --ps-protocol
parent
de54fc65
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
mysql-test/r/partition_error.result
mysql-test/r/partition_error.result
+3
-2
mysql-test/t/partition_error.test
mysql-test/t/partition_error.test
+5
-0
No files found.
mysql-test/r/partition_error.result
View file @
e33e27a6
...
@@ -55,11 +55,12 @@ SELECT * FROM t1;
...
@@ -55,11 +55,12 @@ SELECT * FROM t1;
a
a
2000-01-02 03:04:05
2000-01-02 03:04:05
FLUSH TABLES;
FLUSH TABLES;
# replacing t1.frm with TO_DAYS(a) which was allowed earlier.
# Disable warnings, since the result would differ when running with
# --ps-protocol (only for the 'SELECT * FROM t1' statement).
SELECT * FROM t1;
SELECT * FROM t1;
a
a
2000-01-02 03:04:05
2000-01-02 03:04:05
Warning 1486 Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
Warnings:
SHOW CREATE TABLE t1;
SHOW CREATE TABLE t1;
Table Create Table
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
...
...
mysql-test/t/partition_error.test
View file @
e33e27a6
...
@@ -74,10 +74,15 @@ INSERT INTO t1 VALUES ('2000-01-02 03:04:05');
...
@@ -74,10 +74,15 @@ INSERT INTO t1 VALUES ('2000-01-02 03:04:05');
--
sorted_result
--
sorted_result
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
;
FLUSH
TABLES
;
FLUSH
TABLES
;
--
echo
# replacing t1.frm with TO_DAYS(a) which was allowed earlier.
--
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
frm
--
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
frm
--
copy_file
std_data
/
parts
/
t1TIMESTAMP
.
frm
$MYSQLD_DATADIR
/
test
/
t1
.
frm
--
copy_file
std_data
/
parts
/
t1TIMESTAMP
.
frm
$MYSQLD_DATADIR
/
test
/
t1
.
frm
--
echo
# Disable warnings, since the result would differ when running with
--
echo
# --ps-protocol (only for the 'SELECT * FROM t1' statement).
--
disable_warnings
--
sorted_result
--
sorted_result
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
;
--
enable_warnings
SHOW
CREATE
TABLE
t1
;
SHOW
CREATE
TABLE
t1
;
INSERT
INTO
t1
VALUES
(
'2001-02-03 04:05:06'
);
INSERT
INTO
t1
VALUES
(
'2001-02-03 04:05:06'
);
--
sorted_result
--
sorted_result
...
...
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