push
github
sql: throw duplicate column error for a view This patch fixes the bug: instruction box.execute([[CREATE TABLE t (a INTEGER PRIMARY KEY, a INTEGER);]]) and instruction box.execute([[CREATE VIEW v AS SELECT 1 AS a, 1 AS a;]]) have different behaviors. Now box.execute([[CREATE VIEW v as VIEW AS SELECT 1 AS a, 1 AS a;]]) returns an error: Space field 'a' is duplicate. Closes #4545 NO_DOC=bugfix (cherry picked from commit c704f81c2)
70099 of 118053 branches covered (59.38%)
1 of 2 new or added lines in 1 file covered. (50.0%)
40 existing lines in 16 files now uncovered.105429 of 120369 relevant lines covered (87.59%)
1386311.2 hits per line