Bug 21908: (QA follow-up) Remove useless parentheses in query
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 7 Dec 2018 09:19:44 +0000 (10:19 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 2 Jan 2019 09:24:58 +0000 (10:24 +0100)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 875f3162c8008ef288adfcd18ada490cf06ecc15)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 0c99c3a30a4ebe2ef18db1a6d1e48a99ef7ea0b6)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 247b57388a168b358878c1acd50b8591a3335808)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

misc/migration_tools/rebuild_zebra.pl

index 5605aaa..d0f9340 100755 (executable)
@@ -479,7 +479,7 @@ sub select_all_authorities {
 sub select_all_biblios {
     $table = 'biblioitems'
       unless grep { /^$table$/ } @tables_allowed_for_select;
-    my $strsth = qq{ SELECT DISTINCT(biblionumber) FROM $table };
+    my $strsth = qq{ SELECT DISTINCT biblionumber FROM $table };
     $strsth.=qq{ WHERE $where } if ($where);
     $strsth.=qq{ LIMIT $length } if ($length && !$offset);
     $strsth.=qq{ LIMIT $offset,$length } if ($offset);