Re: SQL result difference between VFP8 and VFP9 by AA
AA
Thu Aug 17 04:16:02 CDT 2006
VFP9 is now consistent with the SQL standard in this case. It's also
consistent with MS SQLServer.
h=SQLSTRINGCONNECT("driver=sql native
client;server=(local);trusted_connection=yes;")
SQLEXEC(h,"USE Tempdb")
?SQLEXEC(h,"create table #cur1 (field1 Char(1) NULL)")
?SQLEXEC(h,"insert into #cur1 values(NULL)")
?SQLEXEC(h,"SELECT field1 as field2, field1 from #cur1",'cur2')
BROWSE LAST NOWAIT
* Shows .NULL. .NULL.
-Anders
"Pazu" <Pazu@discussions.microsoft.com> skrev i meddelandet
news:DE8EFC7A-112B-43C8-AE4B-CA761754010D@microsoft.com...
> CREATE CURSOR cur1 (field1 c(1) NULL)
> INSERT into cur1 VALUES (.Null.)
> SELECT field1 as field2, field1 from cur1 INTO CURSOR cur2
>
> VFP 8 shows
> field2 - blank
> field1 - .Null.
>
> VFP9 shows
> field2 - .Null.
> field1 - .Null.
>
> Any setting can fix it?