Skip navigation

This works now:


SELECT @a \\:= 1, @b \\:= 2, @a + @b



Thanks to Strong Liu's fix:


However, you need to modify the query, which I don't like as it's not "native" then.

It should be fixed by looking ahead for the '='.

But that would be much more complex  - := is MySQL specific, and therefore implementing that would involve moving this exception to Dialect.

In case JBoss AS 7 gives you  an exception like this...


Caused by: Unexpected character '=' (code 61); expected a semi-colon after the reference for entity 'characterSetResults'
 at [row,col {unknown-source}]: [9,106]
        at [jboss-as-server-7.1.2.Final.jar:7.1.2.Final]
        ... 5 more forgot to escape JDBC URL in your datasource definition.


Replace & with &  (as & is a start of XML entity) and that should fix it.

Filter Blog

By date:
By tag: