SmartClient Version: v12.1p_2020-09-18/Enterprise Deployment (built 2020-09-18)
Oracle 12c
Hello, I've got a question about the generation of the where clause when I've got a criteria regarding a datetime field, ie:
That criteria produces this condition in the where clause:
My doubt is: why the 'OR field IS NULL' condition ?
Actually I have to add and extra NotNullCriterion to circumvent it.
Oracle 12c
Hello, I've got a question about the generation of the where clause when I've got a criteria regarding a datetime field, ie:
Code:
DSRequest req = new DSRequest("JPC_LISTINI", "fetch", rpcManager); req.setAdvancedCriteria(new AdvancedCriteria( DefaultOperators.And, new SimpleCriterion("DATA_INIZIO", DefaultOperators.LessThan, new Date())) ); req.execute();
Code:
(JPC_LISTINI.DATA_INIZIO < TO_DATE('2020-09-23 11:00:29','YYYY-MM-DD HH24:MI:SS') OR JPC_LISTINI.DATA_INIZIO IS NULL)
Actually I have to add and extra NotNullCriterion to circumvent it.
Comment