Re: Oracle Pro*C

From: Rick Tan <rtan_at_polaris.utswrk>
Date: 9 Feb 93 21:42:36 GMT
Message-ID: <25Yr03M.ca9J00_at_amdahl.uts.amdahl.com>


I have a problem that is close to driving me nuts. I've coded a C program with Embedded SQL that goes like this:

     EXEC SQL BEGIN DECLARE SECTION;
      char  name[20];
     EXEC SQL END DECLARE SECTION;

.
.
strcpy(name,"Any Valid Name"); EXEC SQL INSERT INTO mytable (name) VALUES (:name); EXEC SQL COMMIT WORK REPLACE;

The row is inserted with no problem. However, the field in the row only shows "ny Valid Name". The field is defined as "NAME CHAR(20)". Does anyone know what is happening here? Thanks.

Rick      Received on Tue Feb 09 1993 - 22:42:36 CET

Original text of this message