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

Fixes #4882
Why typecheck for null here? I'd just check for the interface here.