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 protected] 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 protected]

--

[1][email protected]

 _______________________________________________

Do not post admin requests to the list. They will be ignored.

Webobjects-dev mailing list      ([email protected])

Help/Unsubscribe/Update your Subscription:

https://lists.apple.com/mailman/options/webobjects-dev/gsbrown%40umich.
edu



This email sent to [email protected]


Greg Brown
[email protected]

References

1. mailto:[email protected]
-- 
  
  [email protected]

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

This email sent to [email protected]

Reply via email to