1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

icu installs its own collation, so should not die here

This commit is contained in:
Kenichi Ishigaki 2010-05-27 05:38:30 +00:00
parent 4a71406ea9
commit 14da87c491

View file

@ -141,8 +141,11 @@ sub connect {
sub install_collation {
my $dbh = shift;
my $name = shift;
my $collation = $DBD::SQLite::COLLATION{$name}
or die "can't install, unknown collation : $name";
my $collation = $DBD::SQLite::COLLATION{$name};
unless ($collation) {
warn "Can't install unknown collation: $name" if $dbh->{PrintWarn};
return;
}
if ( DBD::SQLite::NEWAPI ) {
$dbh->sqlite_create_collation( $name => $collation );
} else {