Turns out this was my own clumsiness.
I had *two* variables with the same name, one EXEC SQL-declared as
an SQL short, in the embedded-SQL section, the other a normal C
array of type float**. Printing out the contents of this variable didn't
produce the expected results, reasonably so.
I didn't notice, because my program has a large number of variables,
and the compiler didn't complain either,...
User Profile
Collapse
-
Data Types in Embedded C queries - problems
I have very little experience with DB2, but am writing a simple C program, with
embedded SQL, that has among other things
[The original code compiles fine, any typing errors below are my fault in posting]
EXEC SQL BEGIN DECLARE SECTION;
double F;
/*...*/
EXEC SQL END DECLARE SECTION;
...
Then do a DECLARE a cursor, OPEN it and FETCH a "REAL" column
into...
No activity results to display
Show More
Leave a comment: