Skip to content

Commit

Permalink
chore: hot fix for postgresql 14
Browse files Browse the repository at this point in the history
missing AS in SQL request
  • Loading branch information
laurentC35 committed Jun 21, 2024
1 parent fe717f0 commit 174321f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<groupId>fr.insee</groupId>
<artifactId>Pogues-BO</artifactId>
<packaging>jar</packaging>
<version>4.7.2</version>
<version>4.7.3</version>
<name>Pogues-Back-Office</name>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public List<JsonNode> getStamps() throws Exception {
SELECT jsonb_build_object('id', owner, 'label', owner) FROM
(SELECT DISTINCT
data ->> 'owner' as owner
FROM pogues WHERE (data ->> 'owner') IS NOT NULL);
FROM pogues WHERE (data ->> 'owner') IS NOT NULL) as owner_table;
""";
List<PGobject> data = jdbcTemplate.queryForList(qString, PGobject.class);
return pgToJSON(data);
Expand Down

0 comments on commit 174321f

Please sign in to comment.