Added non-deterministic functions

Fixed [SQL08003] There is no connection to any valid source.