• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 22283179588

22 Feb 2026 06:52PM UTC coverage: 87.639% (-0.003%) from 87.642%
22283179588

push

github

ImeevMA
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)

69818 of 117609 branches covered (59.36%)

1 of 2 new or added lines in 1 file covered. (50.0%)

50 existing lines in 16 files now uncovered.

104789 of 119569 relevant lines covered (87.64%)

1413492.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

96.81
/src/box/sql/select.c


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc