I'm having difficulty with the following concept. Does anyone have the
patience to explain it?
Situation: I have a table in which all of the char fields are type varchar
and my app runs with varcharmapping on and set exact off . When it comes
time to run a few simple queries I get rows with blank values when the where
clause compares one of these fields to a character literal like
where extension = "PJX"
I have already determined that I can get the results I expect if I change
this to:
where extension == "PJX"
but I can't understand how or why comparing an empty column value to a
non-empty string can return .t. since the command line statements:
? "" = "PJX" && -> .f.
and
? "PJX" = "" && -> .t.
both make perfect sense to me, but the query suggests that "" = "PJX" is
true. (VFP9/sp1, enginbehavior 90 if that makes a difference).
-Lew