🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1000

Re: finding caseless in memos

#1000
From: Steve Koterski
Date: Wed, 27 May 1998 00:00
30 lines
1952 bytes
On Wed, 27 May 1998 11:47:20 -0500, "Keith G. Chuvala (TeamB)"
<kgc@DELETE_THIS.hit.net> wrote:

>> This works fine, when field is a String-Field, but an error occurs, when
>> field is a memo. How can I turn memos into upper-case ? Or can I turn
>> memos into text (something like UPPER(STRING(memofield))) ?
>
>No need.  Try this:
>
>  SELECT * FROM alias where <field> LIKE "%something%"

That would depend on whether he is using the 16- or 32-bit BDE. Given the
error that prompted his original post, I suspect he has the 32-bit BDE.

In the 16-bit version of the BDE, LIKE predicate comparisons were always
case-insensitive. Convenient, but not compliant with standard SQL. The
32-bit version of the BDE changed this functionality such that LIKE
predicate comparisons are now (correctly) case-sensitive. For CHAR type
columns, this is not a major problem, as the UPPER function can be used to
convert column and comparison value to the same casing.

Unfortunately, the 32-bit BDE also changed the applicability of the UPPER
function. It can no longer be used with memo columns. This prevents using
UPPER to make a comparison case-insensitive.

**************************************************************************
Steve Koterski
INPRISE Corporation, Technical Publications
http://www.inprise.com/delphi
Technical Details
Message-ID: <357a4ee7.8732720@forums.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <356B2BCB.4F91@radiok2r.de> <356C4398.B7DB8A3E@DELETE_THIS.hit.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,5c89bcf4147e11d0
X-Google-Attributes: gidff5a1,public
From: koterski@borland.com (Steve Koterski)
Subject: Re: finding caseless in memos
Date: 1998/05/27
Message-ID: <357a4ee7.8732720@forums.inprise.com>
X-Deja-AN: 357033839
Content-Transfer-Encoding: 7bit
References: <356B2BCB.4F91@radiok2r.de> <356C4398.B7DB8A3E@DELETE_THIS.hit.net>
Content-Type: text/plain; charset=us-ascii
Organization: INPRISE Corporation, Technical Publications
Mime-Version: 1.0
Reply-To: koterski@borland.com
Newsgroups: borland.public.vdbase.data.sql