log the sql that is actually sent to the database

If I have a query that produces sql
`WHERE "users"."name" = 'a          b'`  ( for some reason markdown is not showing a lot of spaces between a and b. I have 10 white spaces between them) then in the log all the
whitespace is being squeezed. So the sql that is printed in the
log is `WHERE "users"."name" = 'a b'`.

This can be confusing. This commit fixes it by ensuring that
whitespace is not squeezed.

fixes #10982