SELECT obj FROM Object obj WHERE obj.id IN (1 ... 2000)
ICATInternalError: Unexpected DB response class javax.persistence.PersistenceException Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
Error Code: 1461
Call: INSERT INTO LOG (ID, CREATE_ID, CREATE_TIME, DURATION, ENTITYID, ENTITYNAME, MOD_ID, MOD_TIME, OPERATION, QUERY) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
bind => [10 parameters bound]
Query: InsertObjectQuery(org.icatproject.core.entity.Log@17ed8797)
Hi Marcus,
What is the context for doing this? – where are you getting the list of ids from?
I wonder if the query could be done in a different way?
Best,
Tom
--
You received this message because you are subscribed to the Google Groups "icatgroup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
icatgroup+...@googlegroups.com.
To post to this group, send email to
icat...@googlegroups.com.
Visit this group at http://groups.google.com/group/icatgroup.
For more options, visit https://groups.google.com/d/optout.
SELECT i FROM Investigation i JOIN i.investigationInstruments inst WHERE i.name IN (...) AND inst.instrument.name IN (...) INCLUDE i.investigationInstruments.instrument