Skip to content

NULL data not mapped to NA with RODBC on 64-bit Mac OS X

2 messages · Harlan Harris, Tomoaki NISHIYAMA

#
(Missed this until now! Sorry for the delay in responding!)

You could be right about the solution I'm suggesting being wrong, but I
don't know. Does anyone else have any thoughts on the matter? It works for
me....!

I don't know enough to answer your other question, I'm afraid. It seems to
me as if the nature of 64-bit equality is the real problem here...

I'd really like this to get resolved officially. I've done the best I can to
write a patch. Prof. Ripley, would you be able to weigh in on this?

 -Harlan


On Mon, Apr 18, 2011 at 9:20 PM, Tomoaki NISHIYAMA <
tomoakin at kenroku.kanazawa-u.ac.jp> wrote:

            

  
  
#
Hi Harlon,
For the judgement of "the len variable and SQL_NULL_DATA are, in fact, the same"
you seemed to have done with

warning(_("len = %X, SQL_NULL_DATA = %X, len == SQL_NULL_DATA = %d"), (int)len, (int)SQL_NULL_DATA, (int)len == (int)SQL_NULL_DATA);

But this is not the right way to see if "the len variable and SQL_NULL_DATA are the same".
You can try to see the contents of the variable by adding "l" prefix to the format conversion
string to see the full content of the variables.

len = %ld, SQL_NULL_DATA = %ld, len == SQL_NULL_DATA = %d"), (long)len, (long)SQL_NULL_DATA, len == SQL_NULL_DATA

Then see if the equality is strange.

I think you are really close to the bug, but still you need to go for a bit further.