Your code seems to be missing some stuff, notably the closing parts of the method and the SQL statement.

On 2013-10-15 22:14, [email protected] wrote:

When creating a function as source code, using $$ instead of single quote causes syntax error:

Error: Syntax error in SQL statement "CREATE ALIAS REVERSE AS [*]$$ String reverse(String s) { return new StringBuilder(s).reverse().toString()" [42000-172]
SQLState:  42000
ErrorCode: 42000
Error occured in:
CREATE ALIAS REVERSE AS $$ String reverse(String s) { return new StringBuilder(s).reverse().toString()


--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to