From 2dcd28415715be35508a0a04b20d1a1af6a95ec2 Mon Sep 17 00:00:00 2001 From: You Yamagata Date: Mon, 24 Jan 2022 17:36:09 +0900 Subject: [PATCH] Add namePattern condion in SQL queries of getProjectsWithLatestRevision(). --- .../io/digdag/core/database/DatabaseProjectStoreManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/digdag-core/src/main/java/io/digdag/core/database/DatabaseProjectStoreManager.java b/digdag-core/src/main/java/io/digdag/core/database/DatabaseProjectStoreManager.java index b2331d5718..5e69763892 100644 --- a/digdag-core/src/main/java/io/digdag/core/database/DatabaseProjectStoreManager.java +++ b/digdag-core/src/main/java/io/digdag/core/database/DatabaseProjectStoreManager.java @@ -580,6 +580,7 @@ public interface H2Dao ") a on a.id = rev.id" + " where proj.site_id = :siteId" + " and proj.name is not null" + + " and proj.name like :namePattern" + " and " + " and proj.id > :lastId" + " order by proj.id asc" + @@ -646,6 +647,7 @@ public interface PgDao " join revisions rev on proj.id = rev.project_id" + " where proj.site_id = :siteId" + " and proj.name is not null" + + " and proj.name like :namePattern" + " and " + " and proj.id > :lastId" + ") as projects_with_revision" +