I checked the jdbc specification. See http://download.oracle.com/otn-pub/jcp/jdbc-4_1-mrel-spec/jdbc4.1-fr-spec.pdf Appendix D for a list of allowed escape functions. `reverse` is not one of them. In the future, please make those JdbcFunctions, that are listed in the jdbc spec and the others FunctionSymbol and handle the latter explicitly.