mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Item::print(): remove redundant parentheses
by introducing new Item::precedence() method and using it to decide whether parentheses are required
This commit is contained in:
@@ -43,7 +43,7 @@ Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) GENERATED ALWAYS AS ((`a` + `b`)) VIRTUAL,
|
||||
`c` int(11) GENERATED ALWAYS AS (`a` + `b`) VIRTUAL,
|
||||
`h` varchar(10) DEFAULT NULL,
|
||||
KEY `idx` (`c`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
@@ -112,7 +112,7 @@ Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) GENERATED ALWAYS AS ((`a` + `b`)) VIRTUAL,
|
||||
`c` int(11) GENERATED ALWAYS AS (`a` + `b`) VIRTUAL,
|
||||
`h` varchar(10) DEFAULT NULL,
|
||||
KEY `idx_1` (`c`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
|
Reference in New Issue
Block a user