Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT with Memo = Bug?
Message
 
 
À
31/08/2001 03:31:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00551257
Message ID:
00551319
Vues:
18
I say it is a bug, and I have noticed this before. If you change '' to ' ' [1 space], you do not get those records [the ones with just 1 space in the memo field] selected.

>Hej!
>
>Can someone exlain what's going on here. It looks like a bug to me...
>
>To setup create a table with a memo and add a few records and some empty
>records.
>
>create table xxx (xx m(4))
>insert into xxx values ('assasa')
>insert into xxx values ('a aaa')
>insert into xxx values ('')
>insert into xxx values ('')
>
>
>I want this query to return the rows that start with 'a'
>
>select * from xxx where xx='a'
>
>
>But it returns all rows!!!! Why?
>
>Note:
>- SET EXACT has no effect
>- happens in VFP 6 and VFP 7
>- select * from xxx where xx='a' and not empty(xx) works ok!
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform