Issue Details (XML | Word | Printable)

Key: CORE-5526
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Adriano dos Santos Fernandes
Reporter: Adriano dos Santos Fernandes
Votes: 0
Watchers: 2
Operations

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

External routines receives parameters with incorrect length or datatype

Created: 22/Apr/17 04:16 PM   Updated: 25/May/17 08:18 PM
Component/s: API / Client Library, Engine
Affects Version/s: 4.0 Initial, 3.0.2
Fix Version/s: 4.0 Alpha 1, 3.0.3

QA Status: Deferred


 Description  « Hide
- External routine is declared with CHAR(31) CHARACTER SET UTF8 parameter
- External code changes descriptor to VARCHAR(31) CHARACTER SET UTF8

Case 1:

- User calls the routine with a literal '123'
- External code receives a string with byte length 3 instead of 31

Case 2:

- User calls the routine with a parameter bind passing the value '123' as dtype_text
- External code receives a string with byte length 124 instead of 31

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.