LP#1568046: Stamping upgrade script for eliminating connectby from functions