in reply to Re: Want DBI to load empty strings as NULL
in thread Want DBI to load empty strings as NULL
or$sth->execute( map { defined($_) && length($_) ? $_ : undef } @seen_values );
$sth->execute( map { no warnings 'uninitialized'; length($_) ? $_ : undef } @seen_values );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Want DBI to load empty strings as NULL
by jdrago999 (Pilgrim) on Feb 15, 2010 at 21:40 UTC |