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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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);