in reply to DBI - Insert NULL value into DB
Suggested by DBI:
while (($id,$value) = $hStatement->fetchrow_arrayref) { foreach (($id,$value)) { $_ = '' unless defined }; ...
Update: in Informix at least, this does not work. An empty string does not equate to NULL. Also, I don't get any warnings when updating a table using a undefined variable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI - Insert NULL value into DB
by hippo (Archbishop) on Aug 24, 2016 at 14:07 UTC | |
by GotToBTru (Prior) on Aug 24, 2016 at 14:42 UTC |