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

Invalid "attempted update of read-only column" error when trying select minvalue from list with more than 255 elements [CORE3929] #4264

Closed
firebird-automations opened this issue Sep 20, 2012 · 9 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pavel-zotov

Is related to QA578

select minvalue(
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 --50
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 --100
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 --150
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 --200
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 --250
,1,1,1,1,1 -- the last element (#⁠ 255) where result is OK
,1 -- adding this element leads to error message
) from rdb$database;

Statement failed, SQLSTATE = 42000
attempted update of read-only column
After line 0 in file minval.sql

Commits: a848316

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

Edited for readability

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

description: select minvalue( 1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 --#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠ 50
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 --#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠ 100
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 --#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠ 150
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 --#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠ 200
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 ----------------------
,1
,1
,1
,1
,1
,1
,1
,1
,1
,1 --#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠#⁠ 250
,1
,1
,1
,1
,1 -- this is the last element (255th) where result is OK
,1 -- adding this element leads to strange error message about UPDATING
) from rdb$database;

Statement failed, SQLSTATE = 42000
attempted update of read-only column
After line 0 in file minval.sql

=>

select minvalue(
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 --50
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 --100
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 --150
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 --200
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 --250
,1,1,1,1,1 -- the last element (#⁠ 255) where result is OK
,1 -- adding this element leads to error message
) from rdb$database;

Statement failed, SQLSTATE = 42000
attempted update of read-only column
After line 0 in file minval.sql

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

summary: Error "attempted update of read-only column" when trying select minvalue from list with more than 255 elements => Invalid "attempted update of read-only column" error when trying select minvalue from list with more than 255 elements

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA578 [ QA578 ]

@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

Commented by: @pcisar

Test created.

@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