Issue Details (XML | Word | Printable)

Key: CORE-4464
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Alexander Peshkov
Reporter: Robert
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Duplicate tags for CREATE/ALTER USER not handled correctly

Created: 18/Jun/14 12:11 PM   Updated: 24/Jun/14 07:19 AM
Component/s: Security
Affects Version/s: 3.0 Alpha 2
Fix Version/s: 3.0 Beta 1

Time Tracking:
Not Specified

Environment: Windows 7

Planning Status: Unspecified


 Description  « Hide
WI-T3.0.0.30809 Firebird 3.0 Alpha 2

With CREATE/ALTER USER, if I specify two tags with the same name, both will be added in SEC$USER_ATTRIBUTES.

Example:
CREATE USER Test1 PASSWORD 'masterkey' TAGS (a = '1', a = '2')

NAME VALUE
================ ==============================
A 1
A 2

It would be better to produce a syntax error or to insert only the last value (a='2').

 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 24/Jun/14 07:19 AM
Raise an error when duplicate attributes found