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

Offset value for SUBSTRING from BLOB more than 32767 makes exception [CORE2211] #2639

Closed
firebird-automations opened this issue Nov 27, 2008 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Smirnoff Serg (wildsery)

Is related to QA271

For field BLOB subtype Text:

select substring(blob_field from 35000 for 1) from any_table;

Undefined name.
Invalid offset parameter 35000 to SUBSTRING. Only positive integers are allowed.

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

This is a "by design" limitation that seems being intended for strings. It just doesn't take blobs into account.
I suppose it should be quite easy to improve, but I'm not sure it's worth doing in the v2.0 series. Newer versions don't have this issue.

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Fixed starting with v2.1.0, backport is unlikely to happen.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 2.1.0 [ 10041 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA271 [ QA271 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: Done successfully

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

1 participant