• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOAttribute.width()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOAttribute.width()


  • Subject: Re: EOAttribute.width()
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 3 Sep 2008 10:20:28 -0700

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


-- 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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: EOAttribute.width()
      • From: Florijan Stamenkovic <email@hidden>
References: 
 >EOAttribute.width() (From: Florijan Stamenkovic <email@hidden>)

  • Prev by Date: EOAttribute.width()
  • Next by Date: Re: EOAttribute.width()
  • Previous by thread: EOAttribute.width()
  • Next by thread: Re: EOAttribute.width()
  • Index(es):
    • Date
    • Thread