• 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: Entity Modeler, String rtrim not trimming?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entity Modeler, String rtrim not trimming?


  • Subject: Re: Entity Modeler, String rtrim not trimming?
  • From: email@hidden
  • Date: Wed, 24 Oct 2012 15:18:34 -0400

I think I got it. 
 
Java string trim does trim whitespace at the beginning or ending of a string.
 
erprototypes trim is more a lack of padding spaces to fit a fixed width character db field when strings are coming out or into a db.
 
A varchar really doesn't need padding, so a rtrim may not do much with a varchar. (Which is what I am seeing, I think.)
 
A string also may be truncated to fit in a too small db field; here a varchar may be trimmed to fit.
 
Where's that caffeine?
 

On Oct 24, 2012, at 2:53 PM, email@hidden wrote:

HI,
 
I have an eomodel which uses a Frontbase varchar and the string rtrim  variety to put strings into the db.
 
I thought the default rtrim would/should trim spaces at the end of a string, but I have strings with "NAME ", i.e. a single space after some non whitespace characters. 
 
Should the rtrim type of string have a trailing space? Or should it have maybe one?
 
Also, is there a good explanation of all the data types we find in erprototypes? There are quite a few types in there.
 
Thanks,
 
Greg Brown
email@hidden
 
--
email@hidden
 _______________________________________________
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

 
Greg Brown
email@hidden
 
 
--
email@hidden
 _______________________________________________
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

References: 
 >Entity Modeler, String rtrim not trimming? (From: email@hidden)

  • Prev by Date: Entity Modeler, String rtrim not trimming?
  • Next by Date: Re: Problems with H2 DB
  • Previous by thread: Entity Modeler, String rtrim not trimming?
  • Next by thread: centos 6.3 deploy still acting recalcitrantly
  • Index(es):
    • Date
    • Thread