mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Support expressions of the form 'scalar op ANY (array)' and
'scalar op ALL (array)', where the operator is applied between the lefthand scalar and each element of the array. The operator must yield boolean; the result of the construct is the OR or AND of the per-element results, respectively. Original coding by Joe Conway, after an idea of Peter's. Rewritten by Tom to keep the implementation strictly separate from subqueries.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: execnodes.h,v 1.99 2003/06/22 22:04:55 tgl Exp $
|
||||
* $Id: execnodes.h,v 1.100 2003/06/29 00:33:44 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -488,6 +488,22 @@ typedef struct FuncExprState
|
||||
FunctionCallInfoData setArgs;
|
||||
} FuncExprState;
|
||||
|
||||
/* ----------------
|
||||
* ScalarArrayOpExprState node
|
||||
*
|
||||
* This is a FuncExprState plus some additional data.
|
||||
* ----------------
|
||||
*/
|
||||
typedef struct ScalarArrayOpExprState
|
||||
{
|
||||
FuncExprState fxprstate;
|
||||
/* Cached info about array element type */
|
||||
Oid element_type;
|
||||
int16 typlen;
|
||||
bool typbyval;
|
||||
char typalign;
|
||||
} ScalarArrayOpExprState;
|
||||
|
||||
/* ----------------
|
||||
* BoolExprState node
|
||||
* ----------------
|
||||
|
Reference in New Issue
Block a user