tldm-universe/Ardent/UV/gcidir/include/uvsqlsrverr.h

75 lines
3.0 KiB
C
Raw Permalink Normal View History

2024-09-09 21:51:08 +00:00
#ifndef UVSQLSRVERR_H
#define UVSQLSRVERR_H
/******************************************************************************
*
* Header file for uniVerse server error handler
*
* Module %M% Version %I% Date %H%
*
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
* This is unpublished proprietary source code of Ardent Software Inc.
* The copyright notice above does not evidence any actual or intented
* publication of such source code.
*
*******************************************************************************
*
* Maintenence log - insert most recent change descriptions at top
*
* Date.... GTAR# WHO Description.........................................
* 10/14/98 23801 SAP Change copyrights.
* 03/27/98 22798 RGA Enlarge server error message size to 2048.
* 08/28/97 21284 JBG Add nowait and lockabort to srverrflg
* 08/05/96 18994 ENF Add empty-null bit to structure
* 05/22/96 18162 MJC Add req_call bit (SQL Procedure CALL requested)
* 05/14/96 18162 MJC Add in_call bit (SQL Procedure CALL executing)
* 05/10/96 18162 ENF Add in_cascade bit; make layer_count an int
* 04/16/96 18162 MJC Add layer_count to SRVERRBLK; remove
* shm_err from SRVERRFLG
* 03/09/95 15921 MGM Added additional bits to flag word
* 02/24/95 15921 ENF Added additional bits to flag word
* 02/15/95 15921 ENF Initial submission
*
*****************************************************************************/
/*** Define the default amount of space to allocate to save errors.***/
#define SRV_ERR_DETAILSIZE 2048 /* RGA: 22798 */
/* firstnf is used by SQLSetConnectOption and not for server errors. */
typedef struct {
BITMAP
empty_null:1, /* 1=> query should map empty to NULL */
firstnf:1, /* SQL_DATA_MODEL for UCI */
newmess:1, /* 1=> start of a new message */
isfatal:1, /* 1=> fatal message being processed */
iswarning:1, /* 1=> warning message being processed */
mem_alloced:1, /* 1=> memory is Pmalloc'ed */
in_cascade:1, /* 1=> In cascade; don't print warnings */
req_call:1, /* 1=> Call request; clexec should set in_call if found */
in_call:1, /* 1=> In call; print for level 1 server */
nowait:1, /* 1=> NOWAIT on lock requests 21285 */
lockabort:1, /* 1=> Caller of DBwread must error exit, lock error21285*/
spares:(8*sizeof(BITMAP)-11);
} SRVERRFLG;
/*** Define an error structure to be used to report fatal/warnings
*** when a client operation is operating. The server fatal/warning
*** handler will fill in the detail.txt string with one or more entries
*** in the form:
*** err code || F or W || message text ||
*** This structure will also occur in printer shared memory
***/
typedef struct {
SRVERRFLG srverrflg; /* Err structire bitmap */
short errcount; /* Number of errors stored in detail */
short freetext; /* Space left in detail.txt */
STRING detail; /* Error message details */
int layer_count; /* server layer count; */
/* >0 => store errs in shared mem; don't print */
} SRVERRBLK;
#endif