diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-27 20:09:44 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-27 20:09:44 +0000 |
| commit | 982430f8469dfc0fd9d9196862f34a2c3fc7dc13 (patch) | |
| tree | 5f672e30ddd44b4548ba3e18f534fd5008bf3fa8 /src/include/parser/gramparse.h | |
| parent | 351372e585746538ef080bfe1219de3f3074a025 (diff) | |
| download | postgresql-982430f8469dfc0fd9d9196862f34a2c3fc7dc13.tar.gz | |
Put back encoding-conversion step in processing of incoming queries;
I had inadvertently omitted it while rearranging things to support
length-counted incoming messages. Also, change the parser's API back
to accepting a 'char *' query string instead of 'StringInfo', as the
latter wasn't buying us anything except overhead. (I think when I put
it in I had some notion of making the parser API 8-bit-clean, but
seeing that flex depends on null-terminated input, that's not really
ever gonna happen.)
Diffstat (limited to 'src/include/parser/gramparse.h')
| -rw-r--r-- | src/include/parser/gramparse.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/parser/gramparse.h b/src/include/parser/gramparse.h index 97a91093e2..97108f2b1c 100644 --- a/src/include/parser/gramparse.h +++ b/src/include/parser/gramparse.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: gramparse.h,v 1.25 2002/09/04 20:31:45 momjian Exp $ + * $Id: gramparse.h,v 1.26 2003/04/27 20:09:44 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -15,7 +15,6 @@ #ifndef GRAMPARSE_H #define GRAMPARSE_H -#include "lib/stringinfo.h" #include "nodes/parsenodes.h" /* from parser.c */ @@ -24,7 +23,7 @@ extern Oid param_type(int t); extern int yylex(void); /* from scan.l */ -extern void scanner_init(StringInfo str); +extern void scanner_init(const char *str); extern void scanner_finish(void); extern int base_yylex(void); extern void yyerror(const char *message); |
