postgresql/src/backend/parser
Thomas G. Lockhart 7665e7b0a8 Allows the following query to succeed: "SELECT NULL ORDER BY 1;"
There are three or four cases in transformSortClause() and I had fixed
only one case for UNION. A second case is now fixed, in the same way; I
assigned INT4OID to the column type for the "won't actually happen"
sort. Didn't want to skip the code entirely, since the backend needs to
_try_ a sort to get the NULLs right. I'm not certain under what
circumstances the other cases are invoked and these are not yet
fixed up, though perhaps they don't need to be...
1998-08-02 13:34:26 +00:00
..
analyze.c makeTargetEntry cleanup. 1998-07-20 20:48:54 +00:00
gram.c Cleanup of OR fix. 1998-08-01 22:44:55 +00:00
gram.y From: t-ishii@sra.co.jp 1998-07-26 04:31:41 +00:00
keywords.c I really hope that I haven't missed anything in this one... 1998-07-24 03:32:46 +00:00
Makefile From: t-ishii@sra.co.jp 1998-07-26 04:31:41 +00:00
parse_agg.c Remove un-needed braces around single statements. 1998-06-15 19:30:31 +00:00
parse_clause.c Allows the following query to succeed: "SELECT NULL ORDER BY 1;" 1998-08-02 13:34:26 +00:00
parse_coerce.c Allow floating point constants for "def_arg" numeric arguments. 1998-07-08 14:04:11 +00:00
parse_expr.c Change atttypmod from int16 to int32, for Thomas. 1998-07-12 21:29:40 +00:00
parse_func.c Use Snapshot in heap access methods. 1998-07-27 19:38:40 +00:00
parse_node.c Remove un-needed references to Name. 1998-07-20 11:17:11 +00:00
parse_oper.c Use Snapshot in heap access methods. 1998-07-27 19:38:40 +00:00
parse_relation.c Allow floating point constants for "def_arg" numeric arguments. 1998-07-08 14:04:11 +00:00
parse_target.c Cleanup makeTargetEntry and remove internal.c. 1998-07-20 19:53:53 +00:00
parse_type.c Remove un-needed references to Name. 1998-07-20 11:17:11 +00:00
parse.h Fix compile error. Make transaction/work optional on all transaction 1998-07-26 01:18:09 +00:00
parser.c Remove un-needed braces around single statements. 1998-06-15 19:30:31 +00:00
README Add Var.varlevelup to code. More parser cleanup. 1998-01-20 22:12:17 +00:00
scan.c Hi, here are the patches to enhance existing MB handling. This time 1998-06-16 07:29:54 +00:00
scan.l Hi, here are the patches to enhance existing MB handling. This time 1998-06-16 07:29:54 +00:00
scansup.c pgindent run before 6.3 release, with Thomas' requested changes. 1998-02-26 04:46: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_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