Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.0(EOL), 10.1(EOL), 10.2(EOL)
-
None
Description
This script:
DROP TABLE IF EXISTS t1; |
CREATE TABLE t1 (a INT DEFAULT 10); |
DROP VIEW IF EXISTS v1,v2; |
CREATE VIEW v1 AS SELECT a AS a FROM t1; |
CREATE VIEW v2 AS SELECT DEFAULT(a) AS a FROM t1; |
normally creates VIEW v1, but returns an error for VIEW v2:
ERROR 1143 (42000): create view command denied to user 'root'@'localhost' for column 'a' in table 'v2'
|
The same error happes with VALUES(a) instead of DEFAULT(a):
CREATE VIEW v2 AS SELECT VALUES(a) AS a FROM t1; |
The last query is rather useless though.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
This script:
{code:sql} DROP TABLE IF EXISTS t1; CREATE TABLE t1 (a INT DEFAULT 10); DROP VIEW IF EXISTS v1,v2; CREATE VIEW v1 AS SELECT a AS a FROM t1; CREATE VIEW v2 AS SELECT DEFAULT(a) AS a FROM t1; {code} normally creates VIEW v1, but returns an error for VIEW v2: {noformat} ERROR 1143 (42000): create view command denied to user 'root'@'localhost' for column 'a' in table 'v2' {noformat} The same error happes with VALUES(a) instead of DEFAULT(a): {code:sql} CREATE VIEW v2 AS SELECT VALUES(a) AS a FROM t1; {code} The last query is rather useless though. |
Affects Version/s | 10.0 [ 16000 ] |
issue.field.resolutiondate | 2016-11-10 14:19:55.0 | 2016-11-10 14:19:55.611 |
Fix Version/s | 10.0.29 [ 22312 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Assignee | Alexander Barkov [ bar ] |
Fix Version/s | 10.1.20 [ 22112 ] | |
Fix Version/s | 10.2.3 [ 22115 ] |
Fix Version/s | 10.2.1 [ 22012 ] | |
Fix Version/s | 10.2.3 [ 22115 ] |
Workflow | MariaDB v3 [ 78263 ] | MariaDB v4 [ 151208 ] |