Skip to content

Commit

Permalink
fix missing suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Jan 31, 2024
1 parent ee07c0f commit 8fd35bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/EncryptedDBField.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ public function getEncryptedField($engine = null, $fashHash = null)
$fashHash = EncryptHelper::getFashHash();
}
$indexSize = $this->getIndexSize(self::LARGE_INDEX_SIZE);
// fieldName needs to match exact db name for row rotator to work properly

$fieldName = $this->name;
// fieldName needs to match exact db name for row rotator to work properly
$fieldName = $this->name . self::VALUE_SUFFIX;
$indexName = $this->name . self::INDEX_SUFFIX;

$encryptedField = (new EncryptedField($engine, $this->tableName, $fieldName))
Expand Down
3 changes: 2 additions & 1 deletion src/EncryptedNumberField.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ public function getEncryptedField($engine = null, $fashHash = null)
}
$lastFourIndexSize = $this->getLastFourIndexSize(self::SMALL_INDEX_SIZE);
$indexSize = $this->getIndexSize(self::LARGE_INDEX_SIZE);

// fieldName needs to match exact db name for row rotator to work properly
$fieldName = $this->name . "Value";
$fieldName = $this->name . self::VALUE_SUFFIX;
$indexName = $this->name . self::INDEX_SUFFIX;
$shortIndexName = $this->name . "LastFourBlindIndex";

Expand Down

0 comments on commit 8fd35bf

Please sign in to comment.