Subject | Re: [firebird-support] Invalid request BLR at offset XXXX in firebird 1.0x not in 1.5 |
---|---|
Author | Ivan Prenosil |
Post date | 2004-05-03T14:37:21Z |
> - use UDF, either write your own specialized, or just standard this way:I just forgot to remove one right space, so here is "final" version of concatenation
> SELECT DISTINCT t.*, ltrim(a) || substrlen(' ' || a, 1, 1) || ltrim(b)
> FROM t;
using UDF:
rtrim(ltrim(a) || substrlen(' ' || a, 1, 1) || ltrim(b))
or InterBase variant:
rtrim(ltrim(a) || substr(rtrim(' X' || a),1,1) || ltrim(b))
Ivan
http://www.volny.cz/iprenosil/interbase/