From a20d1adde63c81226b13c3e6c600a987750e4532 Mon Sep 17 00:00:00 2001 From: Phil Shapiro Date: Wed, 8 Jan 2025 14:55:54 -0500 Subject: [PATCH] use all caps for sql keywords as is current convention --- .../java/bio/terra/service/profile/ProfileDao.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/bio/terra/service/profile/ProfileDao.java b/src/main/java/bio/terra/service/profile/ProfileDao.java index 4914f41edc..7488f91d65 100644 --- a/src/main/java/bio/terra/service/profile/ProfileDao.java +++ b/src/main/java/bio/terra/service/profile/ProfileDao.java @@ -193,11 +193,11 @@ public boolean deleteBillingProfileById(UUID id) { @Transactional(propagation = Propagation.REQUIRED, readOnly = true) public List listProfileOwnedResources(UUID profileId) { String sql = - "select dataset.id as id, dataset.name as name, dataset.description as description, 'DATASET' as type " - + "from dataset where dataset.default_profile_id = :profile_id " - + "union all " - + "select snapshot.id as id, snapshot.name as name, snapshot.description as description, 'SNAPSHOT' as type " - + "from snapshot where snapshot.profile_id = :profile_id"; + "SELECT dataset.id AS id, dataset.name AS name, dataset.description AS description, 'DATASET' AS type " + + "FROM dataset WHERE dataset.default_profile_id = :profile_id " + + "UNION ALL " + + "SELECT snapshot.id AS id, snapshot.name AS name, snapshot.description AS description, 'SNAPSHOT' AS type " + + "FROM snapshot WHERE snapshot.profile_id = :profile_id"; return jdbcTemplate.query( sql, Map.of("profile_id", profileId),