It's working fine for me running version 1.3.171, executing via the H2-Console.

On 2013-10-16 16:31, [email protected] wrote:
Oh, sorry about the confusion, that's how it is shown in an error message, the code I execute is this:

CREATE ALIAS REVERSE AS $$ String reverse(String s) { return new StringBuilder(s).reverse().toString(); } $$;


On Wednesday, October 16, 2013 3:04:12 AM UTC-4, Noel Grandin wrote:

    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] <javascript:> 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.

--
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