#5335, clear all statement bindings after reset


git-svn-id: https://svn.osgeo.org/gdal/trunk@26864 f0d54148-0727-0410-94bb-9a71ac55c965
Guard test against the "no sqlite" case


git-svn-id: https://svn.osgeo.org/gdal/trunk@26865 f0d54148-0727-0410-94bb-9a71ac55c965
Merge branch 'trunk' into trunk_mingw