Skip to content

Commit 84f6ecb

Browse files
committed
fix: addition of an image to a series was failing on PostgreSQL.
The error was: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [UPDATE series s SET s.updated_at = ? , s.updated_by = ? WHERE s.id = ?]; nested exception is org.postgresql.util.PSQLException: ERROR: column "s" of relation "series" does not exist Part of #1140
1 parent 571af15 commit 84f6ecb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/resources/sql/series_dao_queries.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ VALUES \
4242
)
4343

4444
series.mark_as_modified = \
45-
UPDATE series s \
46-
SET s.updated_at = :updated_at \
47-
, s.updated_by = :updated_by \
48-
WHERE s.id = :series_id
45+
UPDATE series \
46+
SET updated_at = :updated_at \
47+
, updated_by = :updated_by \
48+
WHERE id = :series_id
4949

5050
series.find_all_for_sitemap = \
5151
SELECT s.id, s.updated_at \

0 commit comments

Comments
 (0)