You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just stumbled upon issue for which I couldn't find workaround. I have INT column for which SQLUpdateWithGeneratedKey fails with following exception
org.postgresql.util.PSQLException: Bad value for type long : Test user
at org.postgresql.jdbc.PgResultSet.toLong(PgResultSet.java:3092)
at org.postgresql.jdbc.PgResultSet.getLong(PgResultSet.java:2235)
at scalikejdbc.DBSession$$anonfun$4.liftedTree2$1(DBSession.scala:551)
at scalikejdbc.DBSession$$anonfun$4.apply(DBSession.scala:546)
at scalikejdbc.DBSession$$anonfun$4.apply(DBSession.scala:534)
at scalikejdbc.DBSession$$anonfun$updateWithFilters$1.apply(DBSession.scala:473)
at scalikejdbc.DBSession$$anonfun$updateWithFilters$1.apply(DBSession.scala:470)
at scalikejdbc.LoanPattern$class.using(LoanPattern.scala:18)
at scalikejdbc.ActiveSession.scalikejdbc$DBSession$$super$using(DBSession.scala:701)
at scalikejdbc.DBSession$class.using(DBSession.scala:30)
at scalikejdbc.ActiveSession.using(DBSession.scala:701)
at scalikejdbc.DBSession$class.updateWithFilters(DBSession.scala:469)
at scalikejdbc.ActiveSession.updateWithFilters(DBSession.scala:701)
at scalikejdbc.DBSession$class.updateAndReturnSpecifiedGeneratedKey(DBSession.scala:559)
at scalikejdbc.ActiveSession.updateAndReturnSpecifiedGeneratedKey(DBSession.scala:701)
at scalikejdbc.SQLUpdateWithGeneratedKey$$anonfun$10.apply(SQL.scala:598)
at scalikejdbc.SQLUpdateWithGeneratedKey$$anonfun$10.apply(SQL.scala:598)
at scalikejdbc.DBConnection$class.autoCommit(DBConnection.scala:222)
at scalikejdbc.DB.autoCommit(DB.scala:60)
at scalikejdbc.DB$$anonfun$autoCommit$1.apply(DB.scala:216)
at scalikejdbc.DB$$anonfun$autoCommit$1.apply(DB.scala:215)
at scalikejdbc.LoanPattern$class.using(LoanPattern.scala:18)
at scalikejdbc.DB$.using(DB.scala:139)
at scalikejdbc.DB$.autoCommit(DB.scala:215)
at scalikejdbc.SQLUpdateWithGeneratedKey.apply(SQL.scala:601)
What if we add generic parameter to SQLUpdateWithGeneratedKey so client can use different types?
The text was updated successfully, but these errors were encountered:
Just stumbled upon issue for which I couldn't find workaround. I have INT column for which
SQLUpdateWithGeneratedKey
fails with following exceptionWhat if we add generic parameter to
SQLUpdateWithGeneratedKey
so client can use different types?The text was updated successfully, but these errors were encountered: