aboutsummaryrefslogtreecommitdiff
path: root/src/include/parser/parser.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-04-27 20:09:44 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-04-27 20:09:44 +0000
commit982430f8469dfc0fd9d9196862f34a2c3fc7dc13 (patch)
tree5f672e30ddd44b4548ba3e18f534fd5008bf3fa8 /src/include/parser/parser.h
parent351372e585746538ef080bfe1219de3f3074a025 (diff)
downloadpostgresql-982430f8469dfc0fd9d9196862f34a2c3fc7dc13.tar.gz
postgresql-982430f8469dfc0fd9d9196862f34a2c3fc7dc13.zip
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/parser.h')
-rw-r--r--src/include/parser/parser.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/parser/parser.h b/src/include/parser/parser.h
index dfaf50c5cc8..42d82869f08 100644
--- a/src/include/parser/parser.h
+++ b/src/include/parser/parser.h
@@ -7,16 +7,15 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parser.h,v 1.13 2002/06/20 20:29:52 momjian Exp $
+ * $Id: parser.h,v 1.14 2003/04/27 20:09:44 tgl Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSER_H
#define PARSER_H
-#include "lib/stringinfo.h"
#include "parser/parse_node.h"
-extern List *parser(StringInfo str, Oid *typev, int nargs);
+extern List *parser(const char *str, Oid *typev, int nargs);
#endif /* PARSER_H */