summaryrefslogtreecommitdiff
path: root/net-mail/sympa/files
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@slonko.net>2022-12-19 16:57:59 +0100
committerMarcin Deranek <marcin.deranek@slonko.net>2022-12-19 17:03:00 +0100
commitd04b461c6eb447ffa1c3db44496ca361f3b0f95f (patch)
tree988aea54db070d4bb127e09dbfc2302a7ab09863 /net-mail/sympa/files
parent857ef487c37843d1f32b35d59e7899f0b9144f44 (diff)
downloadportage-d04b461c6eb447ffa1c3db44496ca361f3b0f95f.tar.gz
portage-d04b461c6eb447ffa1c3db44496ca361f3b0f95f.tar.bz2
portage-d04b461c6eb447ffa1c3db44496ca361f3b0f95f.zip
Address SQLite upgrades with newer SQLite
Diffstat (limited to 'net-mail/sympa/files')
-rw-r--r--net-mail/sympa/files/sympa-6.2-sqlite-lowercase.patch19
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/) {