| | Forum OpenACS Development: PgBindCmd turns the empty string into NULL (Site not responding. Last check: 2007-11-06) |
 | | It is the same problem I have in a function called obj__set_attrs, that checks if the passed in attribute is null, and if it isn't, it sets the attribute to the passed in value. |
 | | NULL and the empty string are both passed back as empty Tcl strings in the ns_set built by the drivers (ours and the sybase one written by the AOLserver team - actually, the PG driver was originally written by them, too, though bindvar emulation was added by Dan Wickstrom and me). |
 | | The empty string is NULL in Oracle so the suggestion to use undefined Tcl vars as a flag and the empty string as the empty string would introduce differences in behavior between the Oracle and PG version. |
| openacs.org /forums/message-view?message_id=29109 (1122 words) |