select today, end_quarter2, ( end_quarter2 - today ) as days_to_go from
(select trunc(sysdate) today, to_date('30.06.2009','DD.MM.YYYY') end_quarter2
from dual);
SQL>
SELECT Today
,End_Quarter2
,(End_Quarter2 - Today) AS Days_To_Go
FROM (SELECT Trunc(SYSDATE) Today
,To_Date('30.06.2009'
,'DD.MM.YYYY') End_Quarter2
FROM Dual);
TODAY END_QUARTER2 DAYS_TO_GO
----------- ------------ ----------
22.06.2009 30.06.2009 8
SQL>
Is the error incorrect? It seems that this error would be caused when a FUNCTION has a RETURN statement without a value.Claus Pedersen said:I got errors in the compilation of package bodies caused by the error "PLS-05005: function XYZ returns without value at line NNN".
Yes there will be. From the features list:Claus Pedersen said:BTW II: Marco, will you make a dedicated beta tester forum like when version 7.1 was released?
The Beta version will have a special forum like always to report issues.
Yes, it can be incorrect. It occurs for example when there's no RETURN statement in the EXCEPTION block.Worker said:Is the error incorrect? It seems that this error would be caused when a FUNCTION has a RETURN statement without a value.
PROCEDURE demo
IS
<declarations>
BEGIN
IF
THEN
<CODE>
FOR <iterator>
LOOP
<CODE>
END LOOP;
END IF;
END;
IF
THEN
<code>
END IF;<cursor position>
IF
THEN
<code>
END IF;
<cursor position>
PROCEDURE demo
IS
<declarations>
BEGIN
IF
THEN
<CODE>
FOR <iterator>
LOOP
<CODE>
END LOOP;
END IF;
END;
Note that you can edit the SmartIndent.txt file to match your coding style.I don't think it is logical for 'IF/THEN' 'FOR/LOOP' constructs to autoindent on both keywords. These 'coupled keywords' (for want of a better description) should be treated as one keyword (leaving aside that in my opinion 'IS' should not be considered for autoindentation).
I have added this to the list of enhancement requests.Furthermore I'd like to suggest that autoindent is combined with auto-unindent so that
Note that you can edit the SmartIndent.txt file to match your coding style.