|
For dialects that support "for update", when lock options have been set on a table and there are no table aliases defined, ForUpdateFragment.toFragmentString() does not check for undefined alias, and the sql generated takes the form "select .... from tbl for update as". The database (in our case Postgres) throws an error as the query is malformed
|