Subject: | POD content bug |
Date: | Wed, 19 Sep 2007 12:52:40 -0500 |
To: | <bug-DBD-SQLite [...] rt.cpan.org> |
From: | "Schincke, Keith D. (JSC-IT)[MEI]" <Keith.D.Schincke [...] nasa.gov> |
DBD::SQLite::VERSION = 1.13
DBD::SQLite::sqlite_version = 3.3.7
The example code in the BLOBS section has an incorrect connect() call.
Below is a patch to correct the documentation.
Keith
--- SQLite-orig.pm 2007-09-19 12:44:24.000000000 -0500
+++ SQLite.pm 2007-09-19 12:45:15.000000000 -0500
@@ -526,7 +526,7 @@
BLOB use the following code:
use DBI qw(:sql_types);
- my $dbh = DBI->connect("dbi:sqlite:/path/to/db");
+ my $dbh = DBI->connect("dbi:SQLite:dbname=dbfile","","");
my $blob = `cat foo.jpg`;
my $sth = $dbh->prepare("INSERT INTO mytable VALUES (1, ?)");