diff options
Diffstat (limited to 'net-mail/sympa/files/sympa-6.2-sqlite-lowercase.patch')
-rw-r--r-- | net-mail/sympa/files/sympa-6.2-sqlite-lowercase.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-mail/sympa/files/sympa-6.2-sqlite-lowercase.patch b/net-mail/sympa/files/sympa-6.2-sqlite-lowercase.patch new file mode 100644 index 0000000..0fc5bd5 --- /dev/null +++ b/net-mail/sympa/files/sympa-6.2-sqlite-lowercase.patch @@ -0,0 +1,19 @@ +commit c2bb2ebc22111d808a8ecad9c05a520a939c1494 +Author: Emmanuel Bouthenot <kolter@openics.org> +Date: Sat Nov 12 08:11:13 2022 +0100 + + Fix SQLite upgrade with lowercase types + +diff --git a/src/lib/Sympa/DatabaseDriver/SQLite.pm b/src/lib/Sympa/DatabaseDriver/SQLite.pm +index 06d7ad627..1b42083ac 100644 +--- a/src/lib/Sympa/DatabaseDriver/SQLite.pm ++++ b/src/lib/Sympa/DatabaseDriver/SQLite.pm +@@ -191,7 +191,7 @@ sub get_fields { + } + while (my $field = $sth->fetchrow_hashref('NAME_lc')) { + # http://www.sqlite.org/datatype3.html +- my $type = $field->{'type'}; ++ my $type = lc $field->{'type'}; + if ($type =~ /int/) { + $type = 'integer'; + } elsif ($type =~ /char|clob|text/) { |