scalikejdbc toOrConditionOpt or toAndConditionOpt fails to generate round brackets correctly
The toOrConditionOpt or toAndConditionOpt method from scalikejdbc will auto wrap SQL statements with round brackets when and or or is detected in the statement.
However, the detection regex doesn't work properly when the statement contains newlines.
This ticket will fix this issue by adding a new implementation of toOrConditionOpt or toAndConditionOpt to SQLUtils
this issue seems won't lead to incorrect logic but still worth to fix as it make generated SQL hard to read when debug
scalikejdbc
toOrConditionOpt
ortoAndConditionOpt
fails to generate round brackets correctlyThe
toOrConditionOpt
ortoAndConditionOpt
method from scalikejdbc will auto wrap SQL statements with round brackets whenand
oror
is detected in the statement. However, the detection regex doesn't work properly when the statement contains newlines.This ticket will fix this issue by adding a new implementation of
toOrConditionOpt
ortoAndConditionOpt
toSQLUtils