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:
parent
4a71406ea9
commit
14da87c491
1 changed files with 5 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue