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)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 11 Dec 2018 19:19:47 +0000 (19:19 +0000)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
misc/migration_tools/rebuild_zebra.pl

index c193d62..a79e7a8 100755 (executable)
@@ -476,7 +476,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);