📄 scankey.c
字号:
/*------------------------------------------------------------------------- * * scan.c * scan direction and key code * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Header: /usr/local/cvsroot/pgsql/src/backend/access/common/scankey.c,v 1.14.2.1 1999/08/02 05:24:26 scrappy Exp $ * *------------------------------------------------------------------------- */#include "postgres.h"#include "access/skey.h"/* * ScanKeyEntryIsLegal * True iff the scan key entry is legal. */#define ScanKeyEntryIsLegal(entry) \( \ AssertMacro(PointerIsValid(entry)), \ AttributeNumberIsValid((entry)->sk_attno) \)/* * ScanKeyEntrySetIllegal * Marks a scan key entry as illegal. */voidScanKeyEntrySetIllegal(ScanKey entry){ Assert(PointerIsValid(entry)); entry->sk_flags = 0; /* just in case... */ entry->sk_attno = InvalidAttrNumber; entry->sk_procedure = 0; /* should be InvalidRegProcedure */}/* * ScanKeyEntryInitialize * Initializes an scan key entry. * * Note: * Assumes the scan key entry is valid. * Assumes the intialized scan key entry will be legal. */voidScanKeyEntryInitialize(ScanKey entry, bits16 flags, AttrNumber attributeNumber, RegProcedure procedure, Datum argument){ Assert(PointerIsValid(entry)); entry->sk_flags = flags; entry->sk_attno = attributeNumber; entry->sk_procedure = procedure; entry->sk_argument = argument; fmgr_info(procedure, &entry->sk_func); entry->sk_nargs = entry->sk_func.fn_nargs; Assert(ScanKeyEntryIsLegal(entry));}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -