Re: Alias for arguments in TABLE function

2012-05-03 Thread Thomas Mueller
Hi, Unfortunately, H2 does not support the syntax SELECT * FROM TABLE(GET_NUMBERS()). Regards, Thomas On Friday, April 27, 2012, Łukasz Drumiński wrote: > Loic, thanks for answer. My situation is that: I use on production Oracle > database. Now, I'm trying to use H2 in integration tests. In

Re: Alias for arguments in TABLE function

2012-04-27 Thread Łukasz Drumiński
Loic, thanks for answer. My situation is that: I use on production Oracle database. Now, I'm trying to use H2 in integration tests. In application on production I use exacly this query: SELECT * FROM TABLE(GET_NUMBERS()) and its not good idea to change it. So I'am asking, is there any way to handle

Re: Alias for arguments in TABLE function

2012-04-27 Thread Loic Petit
Hi, You could do the following prepared statement : SELECT * FROM TABLE(ID NUMBER=?) then you can set the parameter with a setObject(1,new Object[] {1,2,3,4,5,6,7,8,9,10}) If you really want to do an external java function (though I do not understand why), I suppose you could write SELECT * FROM