Permalink
Browse files

Fix EZP-26209: Textline legacy search indexing causes TransactionError (

  • Loading branch information...
blankse authored and andrerom committed Dec 21, 2017
1 parent 215a997 commit 59d2c2b12e2e8aed99cfc9ce4be2bdef7311af9a
Showing with 16 additions and 1 deletion.
  1. +2 −1 kernel/search/plugins/ezsearchengine/ezsearchengine.php
  2. +14 −0 lib/ezdb/classes/ezdbinterface.php
@@ -297,7 +297,8 @@ function indexWords( $contentObject, $indexArray, $wordIDArray, $placement = 0 )
$indexWord = $indexArray[$i]['Word'];
$contentClassAttributeID = $indexArray[$i]['ContentClassAttributeID'];
$identifier = $indexArray[$i]['identifier'];
$integerValue = $indexArray[$i]['integer_value'];
$integerValue = min( $indexArray[$i]['integer_value'], eZDBInterface::MAX_INT );
$integerValue = max( $integerValue, eZDBInterface::MIN_INT );
$wordID = $wordIDArray[$indexWord];
if ( isset( $indexArray[$i+1] ) )
@@ -42,6 +42,20 @@ class eZDBInterface
const SERVER_MASTER = 1;
const SERVER_SLAVE = 2;
/**
* Maximal value for int columns
*
* @var int
*/
const MAX_INT = 2147483647;
/**
* Minimal value for int columns
*
* @var int
*/
const MIN_INT = -2147483648;
/**
* Creates a new eZDBInterface object and connects to the database backend.
*

0 comments on commit 59d2c2b

Please sign in to comment.