DhSQLException

Example

This code fragment illustrates the wasNULL method:

CREATE PROCEDURE test_wasNULL()
 BEGIN
     int small_sp      = 0;
     SQLCursor select_btypes = 
          new SQLCursor ("SELECT small_fld from sfns");
     select_btypes.open();
     select_btypes.fetch();
     if ((select_btypes.wasNULL(1)) == true)
            small_sp = null;
     else
            select_btypes.getValue(1,small_sp);
     select_btypes.close();
END