Problem with executing Postgres function from javacode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeanuta
    New Member
    • Oct 2006
    • 1

    #1

    Problem with executing Postgres function from javacode

    boolean retval = false;
    StringBuffer sql = new StringBuffer();
    ResultSet rst = null;
    conn.setAutoCom mit(false);
    sql.append("sel ect assign_customer s() ");
    Statement st = conn.createStat ement();
    retval = st.execute(sql. toString());

    When I execute assign_customer s through pgadmin , it works. But within javacode
    I do not get any error nor the result gets executed
    Assign_customer s doesnt return any values.

    Can somebody help me to call this function from javacode
Working...