Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99bc4a9

Browse files
committed
Generic approach for dealing with that nasty Firebird habit of appending spaces to (tec=EU) varchar casted values
1 parent b35a081 commit 99bc4a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xml/queries.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386

387387
<!-- Firebird -->
388388
<dbms value="Firebird">
389-
<cast query="CAST(%s AS VARCHAR(10000))"/>
389+
<cast query="TRIM(CAST(%s AS VARCHAR(10000)))"/>
390390
<length query="CHAR_LENGTH(%s)"/>
391391
<delimiter query="||"/>
392392
<limit query="ROWS %d TO %d"/>

0 commit comments

Comments
 (0)