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
org.postgresql.util.PSQLException: Bad value for type long : xxxxxx
case at com.speedment.runtime.core.internal.db.AbstractDbmsOperationHandler.handleSqlStatement(AbstractDbmsOperationHandler.java:234)
the source code is:
try (final ResultSet generatedKeys = ps.getGeneratedKeys()) {
while (generatedKeys.next()) {
sqlStatement.addGeneratedKey(generatedKeys.getLong(1));
}
}
}
The text was updated successfully, but these errors were encountered:
fx8080
changed the title
org.postgresql.util.PSQLException: Bad value for type long : xxxxxx if PRIMARY KEY is not long type
The postgresql throws an exception when the PRIMARY KEY is not type long.
Dec 27, 2016
org.postgresql.util.PSQLException: Bad value for type long : xxxxxx
case at com.speedment.runtime.core.internal.db.AbstractDbmsOperationHandler.handleSqlStatement(AbstractDbmsOperationHandler.java:234)
the source code is:
try (final ResultSet generatedKeys = ps.getGeneratedKeys()) {
while (generatedKeys.next()) {
sqlStatement.addGeneratedKey(generatedKeys.getLong(1));
}
}
}
The text was updated successfully, but these errors were encountered: