Quantcast
Channel: SCN : Discussion List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 685

getdate() vs. current_date() in a user-defined function in ASE 15.0.3

$
0
0

Hi.

 

ASE 15.0.3 apparently doesn't allow getdate() inside a UDF. I thought I understood why: deterministic vs. nondeterministic blah blah blah. (I've worked around this by creating a view that selects getdate() and then letting the UDF select from that view, but that's not relevant to my question.)

 

I just discovered that current_date() and current_time() ARE allowed in a UDF. Aren't those just as nondeterministic as getdate()? What's up with that?

 

Thanks.

- John.


Viewing all articles
Browse latest Browse all 685

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>