I'd guess that the docs have not been updated in a very long time. It should not say (in bytes). As long as the database is setup for Unicode (so that varchar(80) accepts 80 unicode characters, it should all be fine.

Can you file a bug report on the documentation so that it gets fixed?

Chuck


On Sep 3, 2008, at 10:12 AM, Florijan Stamenkovic wrote:

Hi all,


The documentation for the EOAttribute.width() says:

"Returns the maximum length (in bytes) for values that are mapped to this attribute. Returns zero for numeric and date types."

So, according to this the maximum length in characters (for textual attributes) would be determined by the encoding used. However, a simple test trying to validate a String attribute shows that the width is validated against the length in characters. Since neither Java nor the DB is encoding in 8bits. So, is this a mistake in the docs or am I missing something?

F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [EMAIL PROTECTED]


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to