Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate tags for CREATE/ALTER USER not handled correctly [CORE4464] #4784

Closed
firebird-automations opened this issue Jun 18, 2014 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Robert (rj1102)

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').

Commits: a38c2ab FirebirdSQL/fbt-repository@455cdbf

@firebird-automations
Copy link
Collaborator Author

Modified by: Robert (rj1102)

description: 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 to (a='2').

=>

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').

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Raise an error when duplicate attributes found

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 Beta 1 [ 10332 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants