Open McFris opened 3 months ago
CHAR is trimmed VARCHAR is not trimmed These behaviors are as expected.
Is there possibility to make forced trimming similar for all text fields, at least as an option?
Similar to FIBPlus for Delphi?
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.
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:
select trim(DATWEB) datweb, trim(CLIENT) client, trim(TIP) tip, trim(PROJECT) project from select_procedure
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]