From db82888b3f91a10297c6b036b7dc6300a30f7d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Thu, 5 Mar 2020 12:02:32 +0100 Subject: [PATCH] #1080 Postgresql compatibility --- app/models/dmsf_query.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/dmsf_query.rb b/app/models/dmsf_query.rb index 90ca4a65..6a69aec4 100644 --- a/app/models/dmsf_query.rb +++ b/app/models/dmsf_query.rb @@ -171,7 +171,7 @@ class DmsfQuery < Query select(%{ dmsf_folders.id AS id, dmsf_folders.project_id AS project_id, - NULL AS revision_id, + CAST(NULL AS #{ActiveRecord::Base.connection.type_to_sql(:decimal)}) AS revision_id, dmsf_folders.title AS title, NULL AS filename, NULL AS size,