My application is working fine before I included custom type converter. I need to convert jOOQ UInteger to Integer, so I included a type converter to achieve this. Post this change, I am getting a mysql syntax error on limit and offset.
Then while debugging, I found that all Integer values that are being supplied(including limit and offset values) are converting into UInteger(because of the type converter) and in turn to string since UInteger is not a default type.
I could solve this by the solution provided by the link jooq issue with limit and offset but I want to understand some details.
If I use
settings.setStatementType(StatementType.STATIC_STATEMENT)
I cannot get prepared statement and I might miss the advantages of the PreparedStatement.If I use
Factory.inline
to bind all integer inline values, I have to do this over my complete application and if I miss something, it will result in serious issue.
Kindly help me out to solve the issue or give me some suggestions on the same.