Skip to content

Commit

Permalink
parentheses in default
Browse files Browse the repository at this point in the history
- Adding SHOW CREATE TABLE into all DEFAULT tests,
  to cover need_parentheses_in_default() for all items
- Fixing a few items not to print parentheses in DEFAULT:
  spatial function-alike predicates, IS_IPV4 and IS_IPV6 functions,
  COLUMN_CHECK() and COLUMN_EXISTS().
  • Loading branch information
Alexander Barkov authored and vuvova committed Jun 30, 2016
1 parent b3e11d3 commit 4dcbb77
Show file tree
Hide file tree
Showing 27 changed files with 1,416 additions and 3 deletions.
7 changes: 7 additions & 0 deletions mysql-test/r/ctype_like_range.result
Original file line number Diff line number Diff line change
Expand Up @@ -3309,6 +3309,13 @@ a VARCHAR(10),
mn VARCHAR(10) DEFAULT LIKE_RANGE_MIN(a,10),
mx VARCHAR(10) DEFAULT LIKE_RANGE_MAX(a,10)
);
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` varchar(10) DEFAULT NULL,
`mn` varchar(10) DEFAULT LIKE_RANGE_MIN(a,10),
`mx` varchar(10) DEFAULT LIKE_RANGE_MAX(a,10)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
INSERT INTO t1 (a) VALUES ('a'),('a_'),('a%');
SELECT a, HEX(mn), HEX(mx) FROM t1;
a HEX(mn) HEX(mx)
Expand Down
Loading

0 comments on commit 4dcbb77

Please sign in to comment.