Subject: | Some params |
RT #20378 seems to have introduced an issue with some params.
The result is an error when named parameters aren't in use:
$ ~/dbd-sqlite.pl Foo
Unknown named parameter at /home/dgl/dbd-sqlite.pl line 8.
Example attached.
The really odd thing is it goes away if you set DBI_TRACE to 2 or
higher, presumably because some logging sets the IOK flag.
Subject: | wp-empty.db |
Message body not shown because it is not plain text.
Subject: | dbd-sqlite.pl |
#!/usr/bin/perl -wT
use strict;
use DBI;
my $dbh = DBI->connect("dbi:SQLite:wp-empty.db", "", "");
my $wp = $dbh->prepare("SELECT text, name, redirect FROM en WHERE name = ?");
$wp->execute($ARGV[0]);
my $res = $wp->fetch;
print "got @$res\n" if $res;