scalikejdbc-async icon indicating copy to clipboard operation
scalikejdbc-async copied to clipboard

sqlsyntax definer bug

Open syscaday opened this issue 8 years ago • 0 comments

val codinatorSQL = sqls.eq(cod.createdDate, DateTime.now().toString("yyyy-MM-dd"))

Im generating a sqlsyntax and pass over error show Retriving Group Failed.com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'created_date' in where clause is ambiguous

But if i use it direct at model .eq(cod.createdDate, DateTime.now().toString("yyyy-MM-dd")) .append(sqls"${where}")

cod.createdDate are working fine with definer cod.*

syscaday avatar Feb 27 '17 01:02 syscaday