Fixes #4882 : new Sql($adapter) should propagate with sql statement 

Fixes #4882
Same refactoring suggested here as well. Consider moving to a private method