postgresql/src/backend/parser
Tom Lane 350cb386af Clean up handling of explicit NULL constants. Cases like
SELECT null::text;
	SELECT int4fac(null);
work as expected now.  In some cases a NULL must be surrounded by
parentheses:
	SELECT 2 + null;                 fails
	SELECT 2 + (null);               OK
This is a grammatical ambiguity that seems difficult to avoid.  Other
than that, NULLs seem to behave about like you'd expect.  The internal
implementation is that NULL constants are typed as UNKNOWN (like
untyped string constants) until the parser can deduce the right type.
1999-12-24 06:43:34 +00:00
..
.cvsignore Add .cvsignore file so cvs doesn't complain if you have lex/yacc 1999-03-21 02:43:58 +00:00
analyze.c Teach grammar and parser about aggregate(DISTINCT ...). No implementation 1999-12-10 07:37:35 +00:00
gram.y Here's the Create/Alter/Drop Group stuff that's been really overdue. I 1999-12-16 17:24:19 +00:00
keywords.c create/alter user extension 1999-11-30 03:57:29 +00:00
Makefile New LDOUT makefile variable for QNX os. 1999-12-13 22:35:27 +00:00
parse_agg.c aggregate(DISTINCT ...) works, per SQL spec. 1999-12-13 01:27:21 +00:00
parse_clause.c Re-enable makeAttr() if ENABLE_OUTER_JOINS is defined. 1999-12-17 14:47:35 +00:00
parse_coerce.c Teach grammar and parser about aggregate(DISTINCT ...). No implementation 1999-12-10 07:37:35 +00:00
parse_expr.c Clean up handling of explicit NULL constants. Cases like 1999-12-24 06:43:34 +00:00
parse_func.c Some changes to prepare for LONG attributes. 1999-12-16 22:20:03 +00:00
parse_node.c Clean up handling of explicit NULL constants. Cases like 1999-12-24 06:43:34 +00:00
parse_oper.c any_ordering_op()'s argument should be declared Oid not int. 1999-12-12 20:51:29 +00:00
parse_relation.c New NameStr macro to convert Name to Str. No need for var.data anymore. 1999-11-07 23:08:36 +00:00
parse_target.c Teach grammar and parser about aggregate(DISTINCT ...). No implementation 1999-12-10 07:37:35 +00:00
parse_type.c Add system indexes to match all caches. 1999-11-22 17:56:41 +00:00
parser.c Move some system includes into c.h, and remove duplicates. 1999-07-17 20:18:55 +00:00
README cleanup 1998-08-23 14:43:46 +00:00
scan.l Remove fixed-size literal buffer from scan.l, and repair 1999-10-18 02:42:31 +00:00
scansup.c Eliminate token length assumption in scanstr(). 1999-09-11 22:26:47 +00:00

This directory does more than tokenize and parse SQL queries.  It also
creates Query structures for the various complex queries that is passed
to the optimizer and then executor.

parser.c	things start here
scan.l		break query into tokens
scansup.c	handle escapes in input
keywords.c	turn keywords into specific tokens
gram.y		parse the tokens and fill query-type-specific structures
analyze.c	handle post-parse processing for each query type
parse_clause.c	handle clauses like WHERE, ORDER BY, GROUP BY, ...
parse_coerce.c	used for coercing expressions of different types
parse_expr.c	handle expressions like col, col + 3, x = 3 or x = 4
parse_oper.c	handle operations in expressions
parse_agg.c	handle aggregates, like SUM(col1),  AVG(col2), ...
parse_func.c	handle functions, table.column and column identifiers
parse_node.c	create nodes for various structures
parse_target.c	handle the result list of the query
parse_relation.c support routines for tables and column handling
parse_type.c	support routines for type handling