Correzione per eseguire le put di un bool specificando direttamente

TRUE o FALSE.


git-svn-id: svn://10.65.10.50/trunk@4003 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1996-12-13 08:07:49 +00:00
parent 24be00847a
commit 6e108af987

View File

@ -2961,7 +2961,7 @@ void TRectype::put_str(const char* fieldname, const char* val)
if (val == NULL)
val = "";
if (ft == _boolfld)
val = (*val && strchr("STXY", toupper(*val)) != NULL) ? "T" : "F";
val = (*val && strchr("1STXY", toupper(*val)) != NULL) ? "T" : "F";
if (*val == '\0') // Da provare
{
TRecfield f(*this, fieldname);