ESQL C problem with sqlerrd[2]
Posted in 1992
In my application, I am using ESQL C 4.1 and formatting dynamic SQL statements. I have found the following problem/possible bug: After the first fetch the number of rows returned in sqlerrd[2] is 0, but the sqlca.sqlcode = 0 also. If I understand this correctly, the sqlerrd[2] says there are no rows, but the sqlcode says there are rows. I printed out the data returned into the fetched structure and it is the data I am looking for. Furthermore, I can run the command from the command line and it works just fine. Does anyone have any idea what might be happening? Is there a condition I am not aware of that sets either of these variables? -- ******************************************************* * Kristen Altman * * kma@ccd.harris.com * * Harris Controls Division * * Melbourne, FL * *******************************************************