Re: PL/pgSQL function not working in (more info)

2005-05-07 Thread Peng Wang
try this select silly(#value#) from dual I think it can work. On 5/8/05, Wolf <[EMAIL PROTECTED]> wrote: > Hi Clinton, > > Thanks for the response. I have tried this through raw JDBC : > con = DriverManager.getConnection("jdbc:postgresql:wiki"); > stat = con

Re: PL/pgSQL function not working in (more info)

2005-05-07 Thread Wolf
Hi Clinton, I tried it with a Prepared statement : Connection con = DriverManager.getConnection("jdbc:postgresql:wiki"); PreparedStatement stat = con.prepareStatement("select silly('foo')"); stat.execute(); and it did work. I'm confused now. I'm going through the SqlM

Re: PL/pgSQL function not working in (more info)

2005-05-07 Thread Clinton Begin
OH!  I missed the "pg" part of your subject line.  :-)   I thought it said PL/SQL. The reason your JDBC test worked is that you used a normal statement.  Try that with a PreparedStatement. iBATIS uses PreparedStatements exclusively. Clinton On 5/7/05, Wolf <[EMAIL PROTECTED]> wrote: Hi Clinton,

Re: PL/pgSQL function not working in (more info)

2005-05-07 Thread Wolf
Hi Clinton, Thanks for the response. I have tried this through raw JDBC : con = DriverManager.getConnection("jdbc:postgresql:wiki"); stat = con.createStatement(); stat.executeQuery("select silly('foo')"); and that works as expected. I am using the same jdbc driver on both occasions. I did try