Hi everyone,
I'm experiencing sometimes a really strange behaviour after executing a dql thanks to IDfQuery.execute : the collection returned does not contain anything even if the query has to always return something (for example a "count" query). Have you ever experimented such a behaviour ?
Here is my code (hard to make it simplier) :
String dql = "SELECT COUNT(*) AS cpt FROM dm_dbo.myview WHERE project_id = 132861";IDfQuery dfQuery = new DfQuery(dql);IDfCollection coll = null;try { coll = dfQuery.execute(dfTypedObject.getObjectSession(), IDfQuery.DF_READ_QUERY); if (coll.next()) { result = coll.getString("cpt"); } else { throw new DfException("Scalar Query has not return any result : " + dql); }} finally { if (coll != null) { coll.close(); }}
It's the first time i'm trying to work with threads, I know of the limitation of 10 collections per session but i'm using a different session for each thread so i don't think that's that ... Is there something else i should know ?
I'm using DFC 6.7sp1.