home *** CD-ROM | disk | FTP | other *** search
- /***************************************************************************
- *
- * RELATIONAL DATABASE SYSTEMS, INC.
- *
- * COPYRIGHT (c) 1981-1986 RELATIONAL DATABASE SYSTEMS, INC., PALO ALTO,
- * CALIFORNIA. All rights reserved. No part of this work covered by the
- * copyright hereon may be reproduced or used in any form or by any means
- * -- graphic, electronic, or mechanical, including photocopying,
- * recording, taping, or information storage and retrieval systems --
- * without permission of RDS.
- *
- * Title: sqlca.h
- * Sccsid: @(#)sqlca.h 4.5 1/30/86 18:18:24
- * Description:
- * SQL Control Area
- *
- ***************************************************************************
- */
-
-
- struct sqlca_s
- {
- long sqlcode;
- char sqlerrm[72]; /* error message paramaters */
- char sqlerrp[8];
- long sqlerrd[6];
- /* 0 - reserved */
- /* 1 - serial value after insert or ISAM error code */
- /* 2 - number of rows processed */
- /* 3 - estimated cost */
- /* 4 - offset into of an error */
- /* 5 - rowid after insert */
- struct sqlcaw_s
- {
- char sqlwarn0; /* = W if any of sqlwarn[1-7] = W */
- char sqlwarn1; /* = W if any truncation occurred */
- char sqlwarn2; /* = W if a null value returned */
- char sqlwarn3; /* = W if no. in select list != no. in into list */
- char sqlwarn4; /* = W if no where clause on prepared update,
- delete */
- char sqlwarn5; /* reserved */
- char sqlwarn6; /* reserved */
- char sqlwarn7; /* reserved */
- } sqlwarn;
- };
-
- /* NOTE: 4gl assumes that the sqlwarn structure can be defined as
- * sqlawarn -- an 8 character string, because single-char
- * variables are not recognized in 4gl.
- *
- * If this structure should change, the code generated by 4gl compiler
- * must also change
- */
-
- extern struct sqlca_s sqlca;
-
- #define SQLNOTFOUND 100
-
-