/* SDB - user definition file */

/* error code definitions */
#define DB_INSMEM	1	/* insufficient memory */
#define DB_RELFNF	2	/* relation file not found */
#define DB_BADHDR	3	/* bad relation file header */
#define DB_TUPINP	4	/* tuple input error */
#define DB_TUPOUT	5	/* tuple output error */
#define DB_RELFUL	6	/* relation file full */
#define DB_RELCRE	7	/* error creating relation file */
#define DB_DUPATT	8	/* duplicate attribute on relation create */
#define DB_MAXATT	9	/* too many attributes on relation create */
#define DB_INSBLK	10	/* insufficient disk blocks */
#define DB_SYNTAX	11	/* command syntax error */
#define DB_ATUNDF	12	/* attribute name undefined */
#define DB_ATAMBG	13	/* attribute name ambiguous */
#define DB_RLUNDF	14	/* relation name undefined */
#define DB_CDSIZE	15	/* boolean expression code too big */

typedef struct {
    char *sl_rels;		/* selected relations */
    char *sl_attrs;		/* selected attributes */
    char *sl_where;		/* where clause */
    char *sl_bindings;		/* variable bindings */
} DB_SEL;

extern int dbv_errcode;
