home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / sqlda.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  2KB  |  61 lines

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