Skip to content
Snippets Groups Projects
Commit 9f035188 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2342377 by david_garcia: Fixed Non database agnostic expression in SQLContentEntityStorage.

parent 89b4f966
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -823,7 +823,7 @@ protected function buildQuery($ids, $revision_id = FALSE) {
// Compare revision ID of the base and revision table, if equal then this
// is the default revision.
$query->addExpression('base.' . $this->revisionKey . ' = revision.' . $this->revisionKey, 'isDefaultRevision');
$query->addExpression('CASE base.' . $this->revisionKey . ' WHEN revision.' . $this->revisionKey . ' THEN 1 ELSE 0 END', 'isDefaultRevision');
}
$query->fields('base', $entity_fields);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment