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

Error message for incorrect value at XSQVAR::sqllen [CORE2060] #2496

Open
firebird-automations opened this issue Aug 31, 2008 · 1 comment
Open

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @ibprovider

Hi

[Crash Test] -----------------
XSQLDA select_col={0};

select_col.version=SQLDA_VERSION1;
select_col.sqln=1;
select_col.sqld=1;

\_\_int16 col\_value=0;
\_\_int16 col\_ind=0;

select\_col\.sqlvar\[0\]\.sqltype =SQL\_SHORT\|1;
select\_col\.sqlvar\[0\]\.sqllen  =123; // <\-\-\-\-\-\-\-\-\-\-\-\- Wrong value
select\_col\.sqlvar\[0\]\.sqldata =reinterpret\_cast<char\*\>\(&col\_value\);
select\_col\.sqlvar\[0\]\.sqlind  =&col\_ind;

[End of Crash Test] --------------------------

isc_dsql_fetch returns a message "message length error (encountered 126, expected 4)"

I think, server can return a "Incorrect values within SQLDA structure" or more exact message

Regards,
Kovalenko Dmitry

@firebird-automations
Copy link
Collaborator Author

Modified by: @ibprovider

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

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