home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 32 / IOPROG_32.ISO / SOFT / SqlEval7 / devtools / include / sqlda.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-28  |  1.7 KB  |  59 lines

  1. /**************************************************************************
  2.  
  3.    Module Name      = SQLDA.H
  4.  
  5.    SQLDA External Include File
  6.  
  7.    Copyright = nnnnnnnn (C) Copyright IBM Corp. 1987
  8.            Licensed Material - Program Property of IBM
  9.            Refer to Copyright Instructions Form Number G120-3083
  10.  
  11.    Function = Include File defining SQLDA
  12.  
  13.         IMPORTANT
  14.         =========
  15.  This file is automatically included by sqlprep.exe.
  16.  Do not include it manually.
  17.  
  18. **************************************************************************/
  19.  
  20. #ifndef _SQLPREP_
  21. #pragma message( "Do not include sqlda.h manually. It will be included by sqlprep.exe. ")
  22. #endif    // _SQLPREP_
  23.  
  24.  
  25. /* SQL Descriptor Area - Variable descriptor */
  26.  
  27. #ifndef   SQLDASIZE
  28.  
  29. /* SQL Descriptor Area - SQLDA */
  30. struct sqlda {
  31.     
  32.     unsigned char   sqldaid[8];            // Eye catcher = 'SQLDA   ' 
  33.     long            sqldabc;            // SQLDA size in bytes = 16+44*SQLN 
  34.     short           sqln;                // Number of SQLVAR elements
  35.     short           sqld;                // # of used SQLVAR elements
  36.     struct          sqlvar 
  37.     {
  38.         short       sqltype;            // Variable data type
  39.         short       sqllen;                // Variable data length
  40.         unsigned char far *sqldata;        // Pointer to variable data value
  41.         short       far *sqlind;        // Pointer to Null indicator
  42.         struct      sqlname             // Variable Name
  43.         {
  44.             short   length;                // Name length [1..30]
  45.             unsigned char data[30];        // Variable or Column name
  46.         }sqlname;
  47.  
  48.     } sqlvar[1];
  49. };
  50.  
  51. /* macro for allocating SQLDA */
  52.  
  53. #define   SQLDASIZE(n) (sizeof(struct sqlda) + (n-1)*sizeof(struct sqlvar))
  54.  
  55. #endif    // SQLDASIZE
  56.  
  57. /* EOF: sqlda.h */
  58.  
  59.