Skip to content

Commit

Permalink
UNION types boolean and integer cannot be matched
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Jan 30, 2025
1 parent c39ab08 commit 2d224e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/dmsf_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def dmsf_folders_scope
dmsf_folders.description AS description,
'' AS comment,
(CASE WHEN dmsf_locks.id IS NULL THEN 0 ELSE 1 END) AS locked,
(CASE WHEN dmsf_folders.system THEN 1 ELSE 0 END) AS "system",
(CASE WHEN (dmsf_folders.system = #{ActiveRecord::Base.connection.quoted_true}) THEN 1 ELSE 0 END) AS "system",
1 AS sort#{cf_columns}})
.joins('LEFT JOIN users ON dmsf_folders.user_id = users.id')
.joins("LEFT JOIN dmsf_locks ON dmsf_folders.id = dmsf_locks.entity_id AND
Expand Down

0 comments on commit 2d224e2

Please sign in to comment.