mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
icu installs its own collation, so should not die here
This commit is contained in:
parent
4a71406ea9
commit
14da87c491
1 changed files with 5 additions and 2 deletions
|
@ -141,8 +141,11 @@ sub connect {
|
||||||
sub install_collation {
|
sub install_collation {
|
||||||
my $dbh = shift;
|
my $dbh = shift;
|
||||||
my $name = shift;
|
my $name = shift;
|
||||||
my $collation = $DBD::SQLite::COLLATION{$name}
|
my $collation = $DBD::SQLite::COLLATION{$name};
|
||||||
or die "can't install, unknown collation : $name";
|
unless ($collation) {
|
||||||
|
warn "Can't install unknown collation: $name" if $dbh->{PrintWarn};
|
||||||
|
return;
|
||||||
|
}
|
||||||
if ( DBD::SQLite::NEWAPI ) {
|
if ( DBD::SQLite::NEWAPI ) {
|
||||||
$dbh->sqlite_create_collation( $name => $collation );
|
$dbh->sqlite_create_collation( $name => $collation );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue