-
Notifications
You must be signed in to change notification settings - Fork 61
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
Auto trim varchar vs trim char in 0.9.8 #167
Comments
CHAR is trimmed |
I don't know if there is any agreement on whether char fields should be trimmed or not, but I can say that the postgresql drivers don't do it. |
And that's why we always have to write such a SQL query: |
require github.com/nakagami/firebirdsql v0.9.8
Result:
Char is: 'F', hex: [70]
Trim char is: 'F', hex: [70]
Varchar is: 'F ', hex: [70 32 32 32] <<<<<<<<<<<<<
Trim varchar is: 'F', hex: [70]
The text was updated successfully, but these errors were encountered: