1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| Taisha:~/perl/forum $ DBI_TRACE=1 perl -E'
use DBI;
my $dbh = DBI->connect("dbi:SQLite:dbname=foobar.db","","");
my ($statement) = @ARGV;
$dbh->do($statement)' "invalid sql"
DBI 1.615-ithread default trace level set to 0x0/1 (pid 10864 pi 10448360) at DBI.pm line 278 via -e line 2
Note: perl is running without the recommended perl -w option
-> DBI->connect(dbi:SQLite:dbname=foobar.db, , ****)
-> DBI->install_driver(SQLite) for cygwin perl=5.010001 pid=10864 ruid=1000 euid=1000
install_driver: DBD::SQLite version 1.31 loaded from /usr/lib/perl5/site_perl/5.10/i686-cygwin/DBD/SQLite.pm
<- install_driver= DBI::dr=HASH(0x1066bad0)
!! warn: 0 CLEARED by call to connect method
<- connect('dbname=foobar.db', '', ...)= DBI::db=HASH(0x104c6338) at DBI.pm line 665
<- STORE('PrintError', 1)= 1 at DBI.pm line 717
<- STORE('AutoCommit', 1)= 1 at DBI.pm line 717
<- STORE('PrintWarn', 0)= 1 at DBI.pm line 720
<- FETCH('PrintWarn')= '' at DBI.pm line 720
<- STORE('Warn', 0)= 1 at DBI.pm line 720
<- FETCH('Warn')= '' at DBI.pm line 720
<- STORE('Username', '')= 1 at DBI.pm line 720
<> FETCH('Username')= '' ('Username' from cache) at DBI.pm line 720
<- connected('dbi:SQLite:dbname=foobar.db', '', ...)= undef at DBI.pm line 726
<- connect= DBI::db=HASH(0x104c6338)
<- STORE('dbi_connect_closure', CODE(0x1066baa0))= 1 at DBI.pm line 735
!! ERROR: 1 'near "invalid": syntax error' (err#0)
<- do('invalid sql')= undef at -e line 5
DBD::SQLite::db do failed: near "invalid": syntax error at -e line 5.
ERROR: 1 'near "invalid": syntax error' (err#0)
<- DESTROY(DBI::db=HASH(104c6290))= undef
!! ERROR: 1 CLEARED by call to disconnect_all method
<- disconnect_all= '' at DBI.pm line 743
! <- DESTROY(DBI::dr=HASH(1066bad0))= undef during global destruction
Taisha:~/perl/forum $ |
Partager