Commit 855a5ee2 authored by BigDave91's avatar BigDave91 Committed by Thomas Seidl
Browse files

Issue #3361041 by BigDave91, drunken monkey: Fixed integer overflow error in...

Issue #3361041 by BigDave91, drunken monkey: Fixed integer overflow error in DB backend for large score values.
parent 108b30ab
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
Search API 1.x, dev (xxxx-xx-xx):
---------------------------------
- #3361041 by BigDave91, drunken monkey: Fixed integer overflow error in DB
  backend for large score values.
- #3325360 by Jelle_S, drunken monkey: Fixed referenced entity tracking not
  respecting the search_api_skip_tracking flag.
- #3324776 by Kingdutch, drunken monkey: Fixed duplicate tables created by DB
+1 −1
Original line number Diff line number Diff line
@@ -1393,7 +1393,7 @@ class Database extends BackendPluginBase implements AutocompleteBackendInterface
              $score = round($score);
              // Take care that the score doesn't exceed the maximum value for
              // the database column (2^32-1).
              $score = min((int) $score, 4294967295);
              $score = (int) min($score, 4294967295);
              $text_inserts[] = [
                'item_id' => $item_id,
                'field_name' => $field_name,