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
9090c3ef
Commit
9090c3ef
authored
May 04, 2015
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a test for Item_default_value in WHERE condition:
WHERE DEFAULT(col) It seems this was not covered yet.
parent
462bca36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
mysql-test/r/default.result
mysql-test/r/default.result
+14
-0
mysql-test/t/default.test
mysql-test/t/default.test
+15
-0
No files found.
mysql-test/r/default.result
View file @
9090c3ef
...
...
@@ -220,3 +220,17 @@ NULL
10
drop table t1, t2;
End of 5.0 tests.
#
# Start of 10.1 tests
#
CREATE TABLE t1 (a INT DEFAULT 100, b INT DEFAULT NULL);
INSERT INTO t1 VALUES ();
SELECT * FROM t1 WHERE DEFAULT(a);
a b
100 NULL
SELECT * FROM t1 WHERE DEFAULT(b);
a b
DROP TABLE IF EXISTS t1;
#
# End of 10.1 tests
#
mysql-test/t/default.test
View file @
9090c3ef
...
...
@@ -166,3 +166,18 @@ drop table t1, t2;
--
echo
End
of
5.0
tests
.
--
echo
#
--
echo
# Start of 10.1 tests
--
echo
#
# Using DEFAULT(col) in WHERE condition
CREATE
TABLE
t1
(
a
INT
DEFAULT
100
,
b
INT
DEFAULT
NULL
);
INSERT
INTO
t1
VALUES
();
SELECT
*
FROM
t1
WHERE
DEFAULT
(
a
);
SELECT
*
FROM
t1
WHERE
DEFAULT
(
b
);
DROP
TABLE
IF
EXISTS
t1
;
--
echo
#
--
echo
# End of 10.1 tests
--
echo
#
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