Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix equation operator in sql file

Dmitry Kazakovfa5373abd76c
diff --git a/libs/resources/sql/storage_tags_ref_count.sql b/libs/resources/sql/storage_tags_ref_count.sql
index 68478df783..ff07fd611c 100644
--- a/libs/resources/sql/storage_tags_ref_count.sql
+++ b/libs/resources/sql/storage_tags_ref_count.sql
@@ -1,11 +1,11 @@
WITH tags_linked_to_storage AS (
SELECT tags_storages.tag_id
FROM tags_storages
- INNER JOIN tags ON tags.id == tags_storages.tag_id
- INNER JOIN resource_types ON resource_types.id == tags.resource_type_id
- INNER JOIN storages ON storages.id == tags_storages.storage_id
- WHERE resource_types.name == :resource_type
- AND storages.location == :location)
+ INNER JOIN tags ON tags.id = tags_storages.tag_id
+ INNER JOIN resource_types ON resource_types.id = tags.resource_type_id
+ INNER JOIN storages ON storages.id = tags_storages.storage_id
+ WHERE resource_types.name = :resource_type
+ AND storages.location = :location)
SELECT tags_storages.tag_id AS tag_id, COUNT(*) AS ref_count
FROM tags_storages
WHERE tags_storages.tag_id IN tags_linked_to_storage