ADSDBE and SQL Null problem

This forum is for general support of Xbase++
Post Reply
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

ADSDBE and SQL Null problem

#1 Post by rdonnay »

I am struggling with NULL values in a CDX database only when doing a SQL use.

If I do an ISAM use (ADSDBE and dbUseArea), no problem. All empty fields are proper values.

If I do a SELECT statement on the same table (via ADSDBE and dbUseArea), then empty fields come back a NIL values.

I have tried Set(_SET_NULLVALUE,.f.) and dbSetNullValue(.f.) to no avail.

I worked on a SQL project with a customer a few years back doing exactly the same stuff and don't recall any problem with this, but now I can't get past the problem.

It is inconvenient on this project to wrap all field access in IsNull() functions.

Does anyone have any ideas?
The eXpress train is coming - and it has more cars.

MIGUELON
Posts: 135
Joined: Wed Feb 10, 2010 10:55 am

Re: ADSDBE and SQL Null problem

#2 Post by MIGUELON »

Hi Roger, I think the sentence is correct in the following SQL

SELECT * FROM Article WHERE pvp IS NULL

Greetings
Miguel

Post Reply