Thread: coredump problem when executing delete statement using Pro*C

  1. #1
    Unregistered
    Guest

    coredump problem when executing delete statement using Pro*C

    OS: HPUnix 11
    DB: Oracle 7.3.2

    Code is
    /* EXECUTE SQL DELETE FROM TAB1
    WHERE COL1 = :hostvar1
    AND COL2 = :hostvar2;
    */

    This Pro*C statement is giving Memory fault(coredump) error when a row does not exist in the table, i.e no data found. When rows are there it works fine.

    The hostvar1, hostvar2 host variables have correct data in both cases, with and without data.

    Any idea what might be the problem.

    Thank you

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    And what exactly does this have to do with C? Typing a sentence containing the letter 'c' does not make your text something that belongs on the C Programming board.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Unregistered
    Guest
    Hi Quzah,

    The program is Embedded SQL in C Code, and is compiled using a Oracle precompiler and a C compiler. I hope u understand the relationship atleast now,

    and if you still did not get it - do not get into what u do not understand without finishing C from a...z.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem need help
    By Srpurdy in forum C++ Programming
    Replies: 1
    Last Post: 07-24-2002, 12:45 PM
  2. Insert node and delete problem <HURRY!!> <pls HELP>>
    By tom_mk in forum C++ Programming
    Replies: 1
    Last Post: 02-20-2002, 04:58 PM
  3. Coredump problem!
    By geetee in forum C Programming
    Replies: 1
    Last Post: 01-29-2002, 10:37 PM
  4. memory management...
    By master5001 in forum Game Programming
    Replies: 24
    Last Post: 01-07-2002, 05:50 PM
  5. problem with output
    By Garfield in forum C Programming
    Replies: 2
    Last Post: 11-18-2001, 08:34 PM