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

Truncation error when using EXECUTE STATEMENT with a blob [CORE4374] #4696

Closed
firebird-issue-importer opened this issue Mar 26, 2014 · 5 comments

Comments

@firebird-issue-importer

Submitted by: Alex Bekhtin (afgm)

In 3.0 we can create big PSQL-code, but can't call 'execute statement' with big code contained in blob

---
execute block
returns (SQL blob sub_type text)
as
begin
select 'create or alter procedure test_proc returns(id integer) as begin '||
list('SUSPEND;', '
')||'
end' from rdb$types, rdb$types
rows 35000
into :SQL;
execute statement :SQL;
suspend;
end
------------------
Arithmetic overflow or division by zero has occurred.
arithmetic exception, numeric overflow, or string truncation.
blob truncation when converting to a string: length limit exceeded.

Commits: 2d330eb FirebirdSQL/fbt-repository@eadaed1

====== Test Details ======

Memory consumption of procedural objects under 64-bit environment is much bigger than on 32-bit one.
This test was retyped because it was encountered that previous limit for the size of BLR is too weak:
test failed at runtime with error "implementation limit exceeds".
New (more rigorous) limit was found by using 64-bit FB, build LI-T3.0.0.31822: BLR can not be larger
than ~2.35 Mb (previous: ~3.21 Mb)

Discussion with dimitr: letter 05-may-2015 12:27, "Расхождения в результатах прогонов по сравнению с данными от 08-апр-2015 build #⁠31780"

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Mar 26, 2014

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Mar 27, 2014

Modified by: @asfernandes

issuetype: Improvement [ 4 ] => Bug [ 1 ]

summary: 'execute statement' with blob => Truncation error when using EXECUTE STATEMENT with a blob

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Mar 27, 2014

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Beta 1 [ 10332 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented May 27, 2015

Modified by: @pavel-zotov

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

QA Status: Done with caveats

Test Details: Memory consumption of procedural objects under 64-bit environment is much bigger than on 32-bit one.
This test was retyped because it was encountered that previous limit for the size of BLR is too weak:
test failed at runtime with error "implementation limit exceeds".
New (more rigorous) limit was found by using 64-bit FB, build LI-T3.0.0.31822: BLR can not be larger
than ~2.35 Mb (previous: ~3.21 Mb)

Discussion with dimitr: letter 05-may-2015 12:27, "Расхождения в результатах прогонов по сравнению с данными от 08-апр-2015 build #⁠31780"

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Sep 28, 2015

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