Skip to content

sql: throw duplicate column error for a select#12263

Open
NinaRodicova wants to merge 1 commit intotarantool:masterfrom
NinaRodicova:ninarodicova/branch_for_fix_bug3
Open

sql: throw duplicate column error for a select#12263
NinaRodicova wants to merge 1 commit intotarantool:masterfrom
NinaRodicova:ninarodicova/branch_for_fix_bug3

Conversation

@NinaRodicova
Copy link
Contributor

@NinaRodicova NinaRodicova commented Feb 1, 2026

This patch fixes the bug: instruction
box.execute([[SELECT * FROM (SELECT 1 as a, 2 as a);]]) it works as follows:

  • metadata:
    • name: a type: integer
    • name: a type: integer rows:
    • [1, 2] ...
      Now this instruction works as follows:

  • null
  • 'ambiguous column name: a' ...

Closes # 12337

NO_DOC=bugfix

@ImeevMA ImeevMA self-assigned this Feb 17, 2026
@ImeevMA ImeevMA self-requested a review February 17, 2026 13:38
This patch fixes the bug: instruction
box.execute([[SELECT * FROM (SELECT 1 as a, 2 as a);]])
it works as follows:
- metadata:
  - name: a
    type: integer
  - name: a
    type: integer
  rows:
  - [1, 2]
...
Now this instruction works as follows:
---
- null
- 'ambiguous column name: a'
...

Closes tarantool#12337

NO_DOC=bugfix
@NinaRodicova NinaRodicova force-pushed the ninarodicova/branch_for_fix_bug3 branch from c056e8d to 9f23683 Compare February 26, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants