home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / a / a610 / 4.ddi / INCL / SQLCA.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-08  |  1.9 KB  |  59 lines

  1. /***************************************************************************
  2.  *
  3.  *                    RELATIONAL DATABASE SYSTEMS, INC.
  4.  *
  5.  *  COPYRIGHT (c) 1981-1986 RELATIONAL DATABASE SYSTEMS, INC., PALO ALTO, 
  6.  *  CALIFORNIA.  All rights reserved.  No part of this work covered by the 
  7.  *  copyright hereon may be reproduced or used in any form or by any means 
  8.  *  -- graphic, electronic, or mechanical, including photocopying, 
  9.  *     recording, taping, or information storage and retrieval systems --
  10.  *  without permission of RDS.
  11.  *
  12.  *  Title:    sqlca.h
  13.  *  Sccsid:    @(#)sqlca.h    4.5    1/30/86  18:18:24
  14.  *  Description:
  15.  *        SQL Control Area
  16.  *
  17.  ***************************************************************************
  18.  */
  19.  
  20.  
  21. struct sqlca_s
  22.     {
  23.     long sqlcode;
  24.     char sqlerrm[72]; /* error message paramaters */
  25.     char sqlerrp[8];
  26.     long sqlerrd[6];
  27.             /* 0 - reserved        */
  28.             /* 1 - serial value after insert or  ISAM error code */
  29.             /* 2 - number of rows processed */
  30.             /* 3 - estimated cost */
  31.             /* 4 - offset into of an error */
  32.             /* 5 - rowid after insert  */
  33.     struct sqlcaw_s
  34.     {
  35.     char sqlwarn0; /* = W if any of sqlwarn[1-7] = W */
  36.     char sqlwarn1; /* = W if any truncation occurred  */
  37.     char sqlwarn2; /* = W if a null value returned */
  38.     char sqlwarn3; /* = W if no. in select list != no. in into list */
  39.     char sqlwarn4; /* = W if no where clause on prepared update,
  40.                      delete */
  41.     char sqlwarn5; /* reserved */
  42.     char sqlwarn6; /* reserved */
  43.     char sqlwarn7; /* reserved */
  44.     } sqlwarn;
  45.     };
  46.  
  47. /* NOTE: 4gl assumes that the sqlwarn structure can be defined as
  48.  *    sqlawarn -- an 8 character string, because single-char
  49.  *    variables are not recognized in 4gl.
  50.  *
  51.  * If this structure should change, the code generated by 4gl compiler
  52.  *    must also change
  53.  */
  54.  
  55. extern struct sqlca_s sqlca;
  56.  
  57. #define SQLNOTFOUND 100
  58.  
  59.