Minor bug fix - LEN counts lengths for trimmed strings

This commit is contained in:
Miroslav Štampar
2026-07-10 17:20:10 +02:00
parent 52c742458b
commit 354977bb5d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -164,7 +164,7 @@
<dbms value="Microsoft SQL Server">
<cast query="CAST(%s AS NVARCHAR(4000))"/>
<length query="LTRIM(STR(LEN(%s)))"/>
<length query="LTRIM(STR(LEN(%s+'.')-1))"/>
<isnull query="ISNULL(%s,' ')"/>
<delimiter query="+"/>
<limit query="SELECT TOP %d "/>
@@ -556,7 +556,7 @@
<dbms value="Sybase">
<cast query="CONVERT(VARCHAR(4000),%s)"/>
<length query="LTRIM(STR(LEN(%s)))"/>
<length query="LTRIM(STR(LEN(%s+'.')-1))"/>
<isnull query="ISNULL(%s,' ')"/>
<delimiter query="+"/>
<limit query="SELECT TOP %d "/>