Subject: | fix DBI/DBD::SQLite deprecation warning. |
unicode attribute is deprecated. Please see attached patch for fix.
Subject: | patch.txt |
diff --git a/lib/Geo/IATA.pm b/lib/Geo/IATA.pm
index d8381e1..595fd33 100644
--- a/lib/Geo/IATA.pm
+++ b/lib/Geo/IATA.pm
@@ -25,7 +25,7 @@ sub new {
$path="iata_sqlite.db";
}
- my $dbh = DBI->connect("dbi:SQLite:dbname=$path","","", {RaiseError => 1, sqlite_unicode=> 1});
+ my $dbh = DBI->connect("dbi:SQLite:dbname=$path","","", {RaiseError => 1, unicode=> 1});
return bless {dbh => $dbh, dbname => $path}, $pkg;
}