Page 1 of 1

Wrong ColumnSize returned by GetSchemaTable

Posted: Wed 21 Feb 2007 10:49
by Andrea Rocca
In version 3.55.20.0 the property ColumnSize return wrong ColumnSize using GetSchemaTable of DataReader object.

For example a VARCHAR(255) field return a size of 765 (2FD) !!!!

Posted: Wed 21 Feb 2007 11:37
by Alexey
I reckon you use UTF8 (which is 3 bytes encoding), don't you?
That's why method returns 765 instead of 255 (765=255*3).

Thanks

Posted: Wed 21 Feb 2007 17:29
by Andrea Rocca
You are in right.

Thanks

Posted: Fri 23 Feb 2007 07:21
by Alexey
Not at all.