Menu

Firebird generatedkey for sql2java.properties

tcy
2005-07-14
2013-04-25
  • tcy

    tcy - 2005-07-14

    need to create "sequence" number table first "create generator SEQ_<TABLE> "

    #-- Firebird ------
    # the 1 is how much to increment the sequence
    generatedkey.retrieve=before
    generatedkey.statement=SELECT GEN_ID(SEQ_<TABLE>, 1) FROM RDB$DATABASE

     
    • tcy

      tcy - 2005-07-14

      oh got a exception in loadByWhere
      Exception in thread "main" org.firebirdsql.jdbc.FBDriverNotCapableException: Result set is TYPE_FORWARD_ONLY

      found a workaround, hopefully it will help others using sql2java with firebird
      //pStatement = c.createStatement();
                  pStatement = c.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);

       

Log in to post a comment.