Line 98, in _queryInsertID: it tried to execute

           c.execute('SELECT gen_id(%s,1) FROM rdb$database'
                               % sequenceName)

  where

       sequenceName = soInstance.sqlmeta.idSequence or \
                              'GEN_%s' % table

  What is the actual sequence name for the table?
 
There is not a sequence generator for this table in the database. All records IDs are generated by the application code.

Petr