• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

embedded SQL in legacy C code --- fetch issue

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I really need some help.
I have embedded SQL in legacy C code.
THis is a code snippet: the C code opens a .txt file, and uploads data into a temp table, this happens correctly.
Then a cursor is declared (mastempc) to fetch one row at a time and process it.
The cursor does fetch all records from the temp table in the defined order, but at the second record, it seems the fetch has a hiccup of some sort:
the data fecthed are null (it prints the "WRONG" and the data in the insert it tries to do, then it continues ... I cannot figure out why.
There are no null records in the temp table ...
I woudl really appreciate.



 
Grace Green
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It does not seem to process the last line, and at the fetch I get an error ORA-01403: no data found

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic