diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-09-07 12:58:33 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-09-07 12:58:33 -0400 |
commit | 4a627a550cb54c18cb16cc0ad852e6a0bbc59c31 (patch) | |
tree | c14ae0c932a86fb435119bbbf0267b64ccf0e9e3 /src | |
parent | 09b9ebf63c7a41dc40a702832b9d103e85dcf297 (diff) |
Reading bools from SQL
Diffstat (limited to 'src')
-rw-r--r-- | src/c/urweb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index 632dbf1e..ad625cf6 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -808,9 +808,9 @@ lw_Basis_float lw_Basis_stringToFloat_error(lw_context ctx, lw_Basis_string s) { } lw_Basis_bool lw_Basis_stringToBool_error(lw_context ctx, lw_Basis_string s) { - if (!strcasecmp (s, "True")) + if (!strcasecmp(s, "T") || !strcasecmp (s, "True")) return lw_Basis_True; - else if (!strcasecmp (s, "False")) + else if (!strcasecmp(s, "F") || !strcasecmp (s, "False")) return lw_Basis_False; else lw_error(ctx, FATAL, "Can't parse bool: %s", s); |