projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21c607d
)
Bei der Liste der vorhandenen Datenbanken "template0" und "template1" ausblenden...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 24 Nov 2006 08:33:07 +0000
(08:33 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 24 Nov 2006 08:33:07 +0000
(08:33 +0000)
SL/User.pm
patch
|
blob
|
history
diff --git
a/SL/User.pm
b/SL/User.pm
index
7e40414
..
86821f7
100644
(file)
--- 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);