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

FbDataReader.GetBytes does not work [DNET181] #191

Closed
firebird-automations opened this issue Oct 8, 2008 · 2 comments
Closed

FbDataReader.GetBytes does not work [DNET181] #191

firebird-automations opened this issue Oct 8, 2008 · 2 comments

Comments

@firebird-automations
Copy link

Submitted by: Fabiano Rezende (fabiano.rezende)

try this:

CREATE TABLE T (
F1 VarChar(80)
);

long len = dr.GetBytes(0, 0, null, 0, int.MaxValue);
byte[] buffer = new byte[len];
dr.GetBytes(0, 0, buffer, 0, (int)len);

@firebird-automations
Copy link
Author

Commented by: @cincuranet

The GetBytes method is for blobs (both sub_type 1, 0, ...). Not for varchar.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Won't Fix [ 2 ]

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