System.out.println(fetch);
Here are exception print:
Exception in thread "main" org.jooq.exception.DataAccessException: SQL [select "public"."user"."id", "public"."user"."username", "public"."user"."age", "public"."user"."current_mood", "public"."user"."height", "public"."user"."friends_ids", "public"."user"."balance" from "public"."user" where "public"."user"."balance" > ? limit ?]; ERROR: operator does not exist: money > numeric
Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Position: 249
at org.jooq.impl.Utils.translate(Utils.java:1644)
at org.jooq.impl.DefaultExecuteContext.sqlException(DefaultExecuteContext.java:661)
at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:356)
at org.jooq.impl.AbstractResultQuery.fetch(AbstractResultQuery.java:290)
at org.jooq.impl.SelectImpl.fetch(SelectImpl.java:2316)
at com.maxifier.noorm.Test.main(Test.java:50)
Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: money > numeric
Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Position: 249
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2270)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1998)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:570)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:420)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:413)
at org.jooq.tools.jdbc.DefaultPreparedStatement.execute(DefaultPreparedStatement.java:194)
at org.jooq.impl.AbstractResultQuery.execute(AbstractResultQuery.java:247)
at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:342)
... 3 more