From 4d8e84155eb745c9007602d7edb1ca0465c23545 Mon Sep 17 00:00:00 2001 From: "Vadim B. Mikheev" Date: Wed, 2 Apr 1997 03:23:38 +0000 Subject: [PATCH] Prototypes for sequence.c --- src/include/commands/sequence.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/include/commands/sequence.h diff --git a/src/include/commands/sequence.h b/src/include/commands/sequence.h new file mode 100644 index 0000000000..4e341e9277 --- /dev/null +++ b/src/include/commands/sequence.h @@ -0,0 +1,33 @@ +/*------------------------------------------------------------------------- + * + * sequence.h-- + * prototypes for sequence.c. + * + * + *------------------------------------------------------------------------- + */ +#ifndef SEQUENCE_H +#define SEQUENCE_H + +/* + * Columns of a sequnece relation + */ + +#define SEQ_COL_NAME 1 +#define SEQ_COL_LASTVAL 2 +#define SEQ_COL_INCBY 3 +#define SEQ_COL_MAXVALUE 4 +#define SEQ_COL_MINVALUE 5 +#define SEQ_COL_CACHE 6 +#define SEQ_COL_CYCLE 7 +#define SEQ_COL_CALLED 8 + +#define SEQ_COL_FIRSTCOL SEQ_COL_NAME +#define SEQ_COL_LASTCOL SEQ_COL_CALLED + +extern void DefineSequence (CreateSeqStmt *stmt); +extern int4 nextval (struct varlena *seqname); +extern int4 currval (struct varlena *seqname); +extern void CloseSequences (void); + +#endif /* SEQUENCE_H */ -- 2.40.0