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

Fixes #4882
Same as above