* gshchepa@stripped <gshchepa@stripped> [07/07/19 17:27]:
> ChangeSet@stripped, 2007-07-19 18:39:01+05:00, gshchepa@stripped +4 -0
> Fixed bug #29338.
> Optimization of queries with DETERMINISTIC functions in the
> WHERE clause was not effective: sequential scan was always
> used.
> Now a SF with the DETERMINISTIC flags is treated as constant
> when it's arguments are constants (or a SF doesn't has arguments).
I think it is a reasonable compromise and agree with Serg's
review.
It would be nice, still, to clarify the point of view of the SQL
standard in the changeset comment, or, better, in the comment in
the source code.
How does the current behaviour correlate with the standard?
Does the standard specify how many times and when a
non-deterministic function is invoked in a query?
What optimizations does the standard allow for deterministic
functions?
--
-- Konstantin Osipov Software Developer, Moscow, Russia
-- MySQL AB, www.mysql.com The best DATABASE COMPANY in the GALAXY