read order by... NULLS LAST
Author: mroesch@arz-emmendingen.de (roesch)
Hello, in my use case I need the NULLS LAST option for the ORDER BY clause. Our Informix Database Server offers this feature (it's part of ANSI SQL), but Uniface (we are working with 9.6) seems not to support it. Is this related to the database driver or the uniface language? Is there any possibility to sort in the read trigger with the NULL values at the end? Cheers, Michael

] Add an extra, non-database field to the entity -- READ-Trigger -- $01 = FIELD.ENTITY ; Fetch, just in case IF(FIELD.ENTITY=="") NDB_FIELD.ENTITY = "~~~~~~~~~" ; Or any other value thats higher then all values ELSE NDB_FIELD.ENTITY = FIELD.ENTITY ENDIF -- RETRIEVE -- retrieve/e "ENTITY" sort/e "ENTITY","NDB_FIELD"



