-
Notifications
You must be signed in to change notification settings - Fork 34
Ensure all integration tests to pass on PostgreSQL #1140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The error was: ERROR: src/main/resources/application-postgres.properties; puzzle at line #42; Space expected at 43:2; make sure all lines in the puzzle body have a single leading space. [skip ci]
Failure 1: when user adds a series to the collection.
|
It worked after removing table alias ( Failure 2: when user adds a series to the collection.
|
Related: |
The error was: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [UPDATE collections c SET c.updated_at = ? , c.updated_by = ? WHERE c.user_id = ?]; nested exception is org.postgresql.util.PSQLException: ERROR: column "c" of relation "collections" does not exist Part of #1140
Failure 3: when admin adds additional image:
|
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
Failure 4: when user creates a series with Michel catalog numbers:
|
|
Both these cases were fixed by using id from a primary table. For example, instead of Thanks @asm0dey for the hint! |
…ng on PostgreSQL. The error was: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT CASE WHEN 'ru' = ? THEN COALESCE(c.name_ru, c.name) ELSE c.name END AS name , SUM(s.quantity) AS counter FROM collections_series cs JOIN series s ON s.id = cs.series_id JOIN categories c ON c.id = s.category_id WHERE cs.collection_id = ? GROUP BY s.category_id]; nested exception is org.postgresql.util.PSQLException: ERROR: column "c.name_ru" must appear in the GROUP BY clause or be used in an aggregate function Thanks to Pavel Finkelshtein <[email protected]> for help to find a fix. Part of #1140
…g on PostgreSQL. The error was: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT COALESCE(CASE WHEN 'ru' = ? THEN COALESCE(c.name_ru, c.name) ELSE c.name END, 'Unknown') AS name , SUM(s.quantity) AS counter FROM collections_series cs JOIN series s ON s.id = cs.series_id LEFT JOIN countries c ON c.id = s.country_id WHERE cs.collection_id = ? GROUP BY s.country_id]; nested exception is org.postgresql.util.PSQLException: ERROR: column "c.name_ru" must appear in the GROUP BY clause or be used in an aggregate function Part of #1140
It seems like removing |
…stgreSQL. Address to #1140 [skip ci]
/spent 52m |
The puzzle
1054-7feb00d4
from #1054 has to be resolved:mystamps/.travis.yml
Line 13 in d4b8073
The puzzle was created by Slava Semushin on 19-Oct-19.
The text was updated successfully, but these errors were encountered: