From 0b1a0aa1fa81078bda54ac9a5b9c8a58672b89d2 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 24 Nov 2006 08:33:07 +0000 Subject: [PATCH] Bei der Liste der vorhandenen Datenbanken "template0" und "template1" ausblenden, damit der Benutzer nicht in Versuchung geraet, diese zu benutzen. Fix fuer Bug 432. --- SL/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/User.pm b/SL/User.pm index 7e4041417..86821f7b3 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -272,7 +272,7 @@ sub dbsources { if ($form->{dbdriver} eq 'Pg') { - $query = qq|SELECT datname FROM pg_database|; + $query = qq|SELECT datname FROM pg_database WHERE NOT ((datname = 'template0') OR (datname = 'template1'))|; $sth = $dbh->prepare($query); $sth->execute || $form->dberror($query); -- 2.20.1