MSSQL: Fix for reading 3D geometries (#6733)