cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dzmitry Kazimirchyk (JIRA)" <>
Subject [jira] [Updated] (CAY-1525) CharType: don't trim spaces on the left
Date Thu, 31 Mar 2011 10:21:05 GMT


Dzmitry Kazimirchyk updated CAY-1525:

    Attachment: cay-1525-patch.txt

thanks for your comment, it was very useful.
In my new patch I added tests for CharType and DataContext and also optimized my rtrim() method.

> CharType: don't trim spaces on the left
> ---------------------------------------
>                 Key: CAY-1525
>                 URL:
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 3.0.1
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.1 (final)
>         Attachments: cay-1525-patch.txt, cay-1525-patch.txt
> Trimming policy for reading padded CHAR values should be the same as when search for
those same values - "rtrim". Spaces on the left of a String can not be padding, those are
the spaces that a user saved deliberately. Currently trimming version of CharType trims both
left and right spaces, we need to change that. 
> Here is the thread where this discussion started:

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message