rethaew has asked for the wisdom of the Perl Monks concerning the following question:
use DBI; $dbh = DBI->connect("DBI:mysql:database=blah;host=127.0.0.1", "root", +"****", {'RaiseError' => 1}); DBI->trace(1); $insertline = "INSERT INTO table (column1,column2) VALUES ('value1','v +alue2');"#column2 does NOT exist in the table and should through back + an error $query = $dbh ->prepare($insertline); $query->execute();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI not erroring out on Insert
by ww (Archbishop) on Sep 10, 2011 at 00:52 UTC | |
by chromatic (Archbishop) on Sep 10, 2011 at 05:16 UTC | |
by ww (Archbishop) on Sep 10, 2011 at 10:19 UTC | |
by chromatic (Archbishop) on Sep 10, 2011 at 19:15 UTC | |
|
Re: DBI not erroring out on Insert
by Anonymous Monk on Sep 10, 2011 at 06:02 UTC | |
|
Re: DBI not erroring out on Insert
by Marshall (Canon) on Sep 11, 2011 at 20:44 UTC | |
by chromatic (Archbishop) on Sep 13, 2011 at 20:35 UTC | |
by Marshall (Canon) on Sep 14, 2011 at 00:38 UTC | |
by mje (Curate) on Sep 14, 2011 at 08:23 UTC | |
by Marshall (Canon) on Sep 14, 2011 at 12:42 UTC | |
| |
by chromatic (Archbishop) on Sep 11, 2011 at 21:20 UTC | |
by Marshall (Canon) on Sep 12, 2011 at 00:35 UTC |