[Info-ingres] EQSL-C null indicators not zero or -1

Mark i at dontgetlotsofspamanymore.invalid
Fri Sep 5 09:37:02 UTC 2014


We have some code written in C using Embedded SQL.  We read data out
of two tables which should contain identical data.  However one column
of one table returns a null indicator > 0.  I believe this can happen
if the data is truncated, which is not the case here.

This only happens under AIX and not under Linux or Solaris, even
though the same source code is being used.

The SQL is like:

EXEC SQL SELECT thisdata FROM table
    INTO :thisdata:null_ind
    ...

thisdata is char[120000] and null_ind is a short.

Any ideas?
-- 
(\__/)  M.
(='.'=) If a man stands in a forest and no woman is around
(")_(") is he still wrong?




More information about the Info-ingres mailing list