Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiled SQL vs Development
Message
From
24/12/1997 13:19:48
 
 
To
23/12/1997 19:52:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00067774
Message ID:
00067867
Views:
30
>I have the following SQL that is acting strange.
>
>select I.code, I.reference, I.title, ;
>A.name as Artist,i.artist as artistcid ;
>from inventry as I inner join artist as A on ;
>(A.cid = I.artist) ;
>order by reference
>
>Artist.cid and Inventry.artist are char 6 key values.
>
>the problem is that when I run this uncompiled it works as expected. When I create an .exe it returns many doubled records.
>
>For example:
>one line in the query shows " Ha" as the CID with Tipica Novel as the artist. The next line shows " Ha" and Trio Los Panchos as the artist. This appears that the SQL parser is not looking at case sensitivity of the Artist.cid index and assumes that " HA" (the real Tipica Novel) is the same as " Ha" ( the real Trio Los panchos). Am I missing a SET command in the runtime, is this a bug, or did I miss something obvious;
>
>Thanks,
>Jon

Also look at SET ANSI and SET EXACT.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform