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

Fixes #4882
`if ($adapter) {` once the type-hint is corrected