From 4cfa0be5b095da8ed36fab906ce6c0d1ef5cc72c Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 20 May 2010 09:57:35 +0000 Subject: [PATCH] .Tsql git-svn-id: svn://ultimatepp.org/upp/trunk@2415 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/TSql/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/TSql/util.cpp b/uppsrc/TSql/util.cpp index 7b171b692..59d0ce01b 100644 --- a/uppsrc/TSql/util.cpp +++ b/uppsrc/TSql/util.cpp @@ -659,7 +659,7 @@ SqlBool GetTextRange(const String& s1, const String& s2, const SqlVal& exp) if(IsNull(s1) || IsNull(s2)) // just one - use as template return LikeSmartWild(exp, s1 + s2); // return Between(GetCsAsciiVal(exp), GetCsAsciiVal(s1), GetCsAsciiVal(s2 + "ŽŽ")); - return Between(Upper(exp), Upper(s1), Upper(s2 + "ŽŽ")); + return Between(UpperAscii(exp), Upper(s1), Upper(s2 + "ZZ")); } static const double above = 1 + 1e-9, below = 1 - 1e-9;