1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-13500 sql_mode=ORACLE: can't create a virtual column with function MOD

Fixing Item_func_mod::print() to print "arg1 MOD arg2" instea of "arg1 % arg2"
This commit is contained in:
Alexander Barkov
2017-08-14 11:12:17 +04:00
parent 0f554dd0fd
commit 9d85323007
34 changed files with 180 additions and 141 deletions

View File

@@ -546,9 +546,9 @@ t1 CREATE TABLE `t1` (
`col2` int(11) NOT NULL,
`col3` int(11) NOT NULL,
`col4` int(11) DEFAULT NULL,
`col5` int(11) GENERATED ALWAYS AS (`col2` % `col3`) VIRTUAL,
`col5` int(11) GENERATED ALWAYS AS (`col2` MOD `col3`) VIRTUAL,
`col7` int(11) GENERATED ALWAYS AS (`col5` * `col5`) VIRTUAL,
`col8` int(11) GENERATED ALWAYS AS (`col5` % `col5`) VIRTUAL,
`col8` int(11) GENERATED ALWAYS AS (`col5` MOD `col5`) VIRTUAL,
`col9` text DEFAULT NULL,
`col6` int(11) DEFAULT NULL,
UNIQUE KEY `uidx` (`col5`)