Hello,
We sometimes get errors with queries that look like this:
where (t.CompanyCode,t.DivisionCode,t.PSchedNo) in ((?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?),(?,?,?))
Looks like the in clause for embedded id's with compound primary keys fails. We changed it to generate sql like this (in cases of compound pk's):
where ((t.CompanyCode = ? and t.DivisionCode = ? and t.PSchedNo = ?) or (t.CompanyCode = ? and t.DivisionCode = ? and t.PSchedNo = ?) or (t.CompanyCode = ? and t.DivisionCode = ? and t.PSchedNo = ?))
See the patch attached.
Cheers, Rien