Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ODBC text trimming behaviour #3412

Merged
merged 2 commits into from
Jan 30, 2021
Merged

Conversation

pramsey
Copy link
Contributor

@pramsey pramsey commented Jan 25, 2021

Removes the white space trimming from the ODBC fetching code which removes spaces from ODBC text field on retrieval.

The behaviour makes it difficult to use ODBC results for some use cases that consider white space important, and was discovered here pramsey/pgsql-ogr-fdw#208

Either the behaviour should be removed, or made conditional on a run-time option. A compile-time option seems not worth the effort. Initial PR for CI tests, and then can use this PR for final commit or run-time option implementation.

@havingsexonthebeach
Copy link
Contributor

Digging into history shows that the whitespace trimming is as old as the initial implementation: 39c4d2b#diff-22bf0bc3c1e2c8216ba95373356aaac4667ce29e46b067d14f7e64adf494540eR389

@pramsey
Copy link
Contributor Author

pramsey commented Jan 28, 2021

Once this passes CI, I am going to merge. If something breaks we can always put it back.

@pramsey pramsey merged commit 43e6aa8 into OSGeo:master Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants