diff --git a/Changes b/Changes
index e7132e1..0d51af4 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
Changes for Perl extension DBD-SQLite
+1.26_07 to be released
+ - Resolved #50935: there remained old "unicode" attribute usage
+ in the pod, spotted by ASHLEY. (ISHIGAKI)
+
1.26_06 Wed 28 Ocr 2009
*** CHANGES THAT MAY POSSIBLY BREAK YOUR OLD APPLICATIONS ***
- Removed undocumented (and most probably unused) reset method
diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm
index 2f419f8..f2a8e41 100644
--- a/lib/DBD/SQLite.pm
+++ b/lib/DBD/SQLite.pm
@@ -117,12 +117,12 @@ sub connect {
DBD::SQLite::db::_login($dbh, $real, $user, $auth, $attr) or return undef;
# Register the on-demand collation installer
- $DBI::VERSION >= 1.608
+ $DBI::VERSION >= 1.608
? $dbh->sqlite_collation_needed(\&install_collation)
: $dbh->func(\&install_collation, "collation_needed");
- # Register the REGEXP function
- $DBI::VERSION >= 1.608
+ # Register the REGEXP function
+ $DBI::VERSION >= 1.608
? $dbh->sqlite_create_function("REGEXP", 2, \®exp)
: $dbh->func("REGEXP", 2, \®exp, "create_function");
@@ -140,7 +140,7 @@ sub install_collation {
my ($dbh, $collation_name) = @_;
my $collation = $DBD::SQLite::COLLATION{$collation_name}
or die "can't install, unknown collation : $collation_name";
- $DBI::VERSION >= 1.608
+ $DBI::VERSION >= 1.608
? $dbh->sqlite_create_collation($collation_name => $collation)
: $dbh->func($collation_name => $collation, "create_collation");
}
@@ -148,7 +148,7 @@ sub install_collation {
# default implementation for sqlite 'REGEXP' infix operator.
# Note : args are reversed, i.e. "a REGEXP b" calls REGEXP(b, a)
# (see http://www.sqlite.org/vtab.html#xfindfunction)
-sub regexp {
+sub regexp {
use locale;
return scalar($_[1] =~ $_[0]);
}
@@ -582,7 +582,7 @@ DBD::SQLite - Self-contained RDBMS in a DBI Driver
SQLite is a public domain file-based relational database engine that
you can find at L.
-B is a Perl DBI driver for SQLite, that includes
+B is a Perl DBI driver for SQLite, that includes
the entire thing in the distribution.
So in order to get a fast transaction capable RDBMS working for your
perl project you simply have to install this module, and B
@@ -629,7 +629,7 @@ connection string (as a database C):
my $dbh = DBI->connect("dbi:SQLite:dbname=$dbfile","","");
The file is opened in read/write mode, and will be created if
-it does not exist yet.
+it does not exist yet.
Although the database is stored in a single file, the directory
containing the database file must be writable by SQLite because the
@@ -737,13 +737,20 @@ This is somewhat weird, but works anyway.
Since SQLite 3.6.19 (released on Oct 14, 2009; bundled with
DBD::SQLite 1.26_05), foreign key constraints are supported (though
with some limitations). See L
-for details. Though SQLite does NOT enable this feature by default yet (for backward compatibility), DBD::SQLite enables it internally. If you don't want this feature, issue a pragma to disable the feature.
+for details. Though SQLite does NOT enable this feature by default
+yet (for backward compatibility), DBD::SQLite enables it internally.
+If you don't want this feature, issue a pragma to disable the feature.
$dbh->do("PRAGMA foreign_keys = OFF");
=head2 Pragma
-SQLite has a set of "Pragma"s to modifiy its operation or to query for its internal data. These are specific to SQLite and are not likely to work with other DBD libraries, but you may find some of these are quite useful. DBD::SQLite actually sets some (like C above) for you when you connect to a database. See L for details.
+SQLite has a set of "Pragma"s to modifiy its operation or to query
+for its internal data. These are specific to SQLite and are not
+likely to work with other DBD libraries, but you may find some of
+these are quite useful. DBD::SQLite actually sets some (like
+C above) for you when you connect to a database.
+See L for details.
=head2 Performance
@@ -767,7 +774,7 @@ switching his log analysis code to use this little speed demon!
Oh yeah, and that was with no indexes on the table, on a 400MHz PIII.
-For best performance be sure to tune your hdparm settings if you
+For best performance be sure to tune your hdparm settings if you
are using linux. Also you might want to set:
PRAGMA default_synchronous = OFF
@@ -818,7 +825,9 @@ updates:
Defining the column type as C in the DDL is B sufficient.
-As of version 1.26_06, C is renamed to C for integrity. Old C attribute is still accessible but will be deprecated in the near future.
+This attribute was originally named as C, and renamed to
+C for integrity since version 1.26_06. Old C
+attribute is still accessible but will be deprecated in the near future.
=back
@@ -961,12 +970,12 @@ The driver will check that this is a proper sorting function.
This method manually registers a callback function that will
be invoked whenever an undefined collation sequence is required
-from an SQL statement. The callback is invoked as
+from an SQL statement. The callback is invoked as
$code_ref->($dbh, $collation_name)
-and should register the desired collation using
-L"sqlite_create_collation">.
+and should register the desired collation using
+L"sqlite_create_collation">.
An initial callback is already registered by C,
so for most common cases it will be simpler to just
@@ -1234,7 +1243,7 @@ sqlite3 extensions. After the call, you can load extensions like this:
A subset of SQLite C constants are made available to Perl,
because they may be needed when writing
-hooks or authorizer callbacks. For accessing such constants,
+hooks or authorizer callbacks. For accessing such constants,
the C module must be explicitly C