Menu

save exception (is it a firebird db thing?)

Help
tcy
2005-07-15
2013-04-25
  • tcy

    tcy - 2005-07-15

    i load a simpleBean, without modifying it, pass it to simpleBeanManager.save when an exception occur.

    _sql.toString() = update simple set where simplekey = ?
    i think its because of the invalid sql statement that cause the exception. is this happening with other database too?

    my workaround is to modify xManagerTemplate.vm

    /* return object since no change */
                    if (!useComma) {
                         return pObject;
                    }
    /* error here when creating preparestatement */
                    ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);

     
    • nr

      nr - 2005-07-15

      Hi,

      This is not a firebird thing and sure it should be enhanced.
      Best would be to rely on isModified() xBean method.
      We will add that in next release.

      Thanks!
      Nicolas.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.