Wrong ColumnSize returned by GetSchemaTable

Wrong ColumnSize returned by GetSchemaTable

Postby Andrea Rocca » Wed 21 Feb 2007 10:49

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) !!!!
Andrea Rocca
 
Posts: 5
Joined: Fri 10 Mar 2006 15:50

Postby Alexey » Wed 21 Feb 2007 11:37

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).
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Thanks

Postby Andrea Rocca » Wed 21 Feb 2007 17:29

You are in right.

Thanks
Andrea Rocca
 
Posts: 5
Joined: Fri 10 Mar 2006 15:50

Postby Alexey » Fri 23 Feb 2007 07:21

Not at all.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for MySQL