2 Replies Latest reply on Jul 11, 2014 10:21 AM by Bartosz Majsak

    ScriptExecutor

    smog Newbie

      Hi,

       

      in h2 you can define java functions direct in sql scripts f.e:

       

      CREATE ALIAS NEXT_PRIME AS $$

        String nextPrime(String value) {

            return new BigInteger(value).nextProbablePrime().toString();

      }

      $$;

       

      But org.jboss.arquillian.persistence.script.ScriptExecutor thinks its a comment and remove such functions.

       

      just for info.

       

      Cheers!