We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to use the like expression with a sql anywhere database.
javax.persistence.PersistenceException: Query threw SQLException:[Sybase][JDBC Driver][SQL Anywhere]Invalid escape character ''
Expression e = Expr.like("column1" "div%"); query().where().add(e).findList();
The Expression results in the following SQL where statement:
where t0.column1like ? escape''
For default behavior escape should be set to ~ or left empty in SqlAnywherePlatform
escape
~
SqlAnywherePlatform
protected String likeClauseRaw = "like ? escape'~'";
The text was updated successfully, but these errors were encountered:
#2798 - SQL Anywhere: invalid escape character on like expression
01155c3
Thanks. Gone with the ansi default option of no escape clause (as opposed to escape with ''). Added a test to show the platform differences.
Sorry, something went wrong.
rbygrave
No branches or pull requests
Expected behavior
I want to use the like expression with a sql anywhere database.
Actual behavior
javax.persistence.PersistenceException: Query threw SQLException:[Sybase][JDBC Driver][SQL Anywhere]Invalid escape character ''
javax.persistence.PersistenceException: Query threw SQLException:[Sybase][JDBC Driver][SQL Anywhere]Invalid escape character ''
The Expression results in the following SQL where statement:
For default behavior
escape
should be set to~
or left empty inSqlAnywherePlatform
The text was updated successfully, but these errors were encountered: