A pretty simple Spring application made to run using different DataSources. In it I have a liquibase change-set which involves this sql:
<sql>
UPDATE home_description hd
INNER JOIN home h ON
hd.id = h.description_id
SET hd.home_id = h.id
</sql>
While this statement runs perfectly fine on a MySQL database, it doesn't work on PostgreSQL.
This is the exception:
Error: org.postgresql.util.PSQLException: ERROR: syntax error at or near "INNER"
Position: 46
liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: ERROR: syntax error at or near "INNER"
Is there a way to rewrite this statement that both MySQL and PostgreSQL accept this? Thanks!