User Profile

Collapse

Profile Sidebar

Collapse
edwald
edwald
Last Activity: Mar 18 '08, 10:15 AM
Joined: Sep 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • edwald
    replied to Data Types in Embedded C queries - problems
    in DB2
    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,...
    See more | Go to post

    Leave a comment:


  • edwald
    started a topic Data Types in Embedded C queries - problems
    in DB2

    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...
    See more | Go to post
No activity results to display
Show More
Working...