Menu

#23 boolean values should be case insensitive

open
nobody
None
5
2004-04-28
2004-04-28
No

A .csv with the value "TRUE" (uppercase) is not
interpreted as true by csv2pdb.

It looks as if string2boolean() was intended to be
case-insensitive as it copies the string and converts
it to lower case before comparing it to appropriate
strings. However, some comparisons look at the original
and not the lowercase copy.

Fixed by the attached patch.

Discussion

  • Jonathan Hough

    Jonathan Hough - 2004-04-28

    patch against palm-db-tools/libsupport/strop.cpp (version 0.3.6)

     
  • Sylvain Mailloux

    Logged In: YES
    user_id=1085597

    I confirm that this is a bug in csv2pdb 0.3.6:
    I replaced all ",FALSE," with ",false," and ",TRUE," with ",true,"
    in my .CSV file and ran csv2pdb again: this time it worked fine

    So this fix si most welcome if you want to use boolean fields!!!

    Hope to see this fix in a release soon :)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.