Skip to Content.
Sympa Menu

devel - [sympa-dev] Something changed in mysql or abstraction API which breaks sympa ?

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Olivier Berger <address@concealed>
  • To: "address@concealed" <address@concealed>
  • Subject: [sympa-dev] Something changed in mysql or abstraction API which breaks sympa ?
  • Date: Wed, 25 Apr 2007 15:24:10 +0200

Hi.

I just noticed that something's needed to fix a breakage on Debian sympa
testing package...

I think you may be interested as the Upgrade.pm code seems not to have
changed in SVN on next beta version AFAICT.

More details : excerpt of
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=418836#10 :

-----

I think I see the problem : the DB interface for mysql newly reports
table names like :
`sympa`.`admin_table` instead of simply `admin_table` or admin_table

I think the following may be used in List.pm::probe_db to correct that :

instead of :
foreach my $t (@tables) {
$t =~ s/^\`(.+)\`$/\1/;
}
have :
foreach my $t (@tables) {
$t =~ s/^([^.]+\.)?(.+)$/\2/;
$t =~ s/^\`(.+)\`$/\1/;
}

Although I'm not so sure about my regexp... also, this may not be
backward compatible with previous versions of the DB access engine, or
whatever has changed since etch...

Hope this helps.

--
Olivier BERGER <address@concealed> (ATTENTION : new address)
Ingénieur Recherche - Dept INF
GET/INT at Evry (http://www.int-edu.eu/)
OpenPGP-Id: 1024D/6B829EEC






Archive powered by MHonArc 2.6.19+.

Top of Page