Please find the attached patch to fix RM #2651 : "Create Script" view of functions always shows "ROWS 0".
Right now function displays ROWS 0 in case of empty ROWS field. Now it will display correct value of the filed. This has been fixed in Create/Update/View function.