From: Kevin G. <ke...@go...> - 2003-10-22 06:15:32
|
> 2) ...when a value from %X is not initialized, > the string '[undef]' is inserted, but when the corresponding database > column is of type INTEGER, obviously the SQL statements fails. I'd like > to have a way to put a zero or a NULL value instead of the string > '[undef]'. Hey, Mike, that's this bit from MDC.pm: if(exists $MDC_HASH{$key}) { return $MDC_HASH{$key}; } else { return "[undef]"; } Do you remember the rationale for returning a string instead of just undef? Maybe we should at least make that configurable? What do you think? -- Happy Trails. . . Kevin M. Goess (and Anne and Frank) 904 Carmel Ave. Albany, CA 94706 (510)525-5217 |