boolean values should be case insensitive
Brought to you by:
tdyas
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.
patch against palm-db-tools/libsupport/strop.cpp (version 0.3.6)
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 :)