From 982430f8469dfc0fd9d9196862f34a2c3fc7dc13 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 27 Apr 2003 20:09:44 +0000 Subject: 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.) --- src/backend/executor/spi.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/backend/executor/spi.c') diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c index faceb1ec738..11ed2914de5 100644 --- a/src/backend/executor/spi.c +++ b/src/backend/executor/spi.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.90 2003/04/24 21:16:43 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.91 2003/04/27 20:09:43 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -967,7 +967,6 @@ spi_printtup(HeapTuple tuple, TupleDesc tupdesc, DestReceiver *self) static int _SPI_execute(const char *src, int tcount, _SPI_plan *plan) { - StringInfoData stri; List *raw_parsetree_list; List *query_list_list; List *plan_list; @@ -994,10 +993,7 @@ _SPI_execute(const char *src, int tcount, _SPI_plan *plan) /* * Parse the request string into a list of raw parse trees. */ - initStringInfo(&stri); - appendStringInfoString(&stri, src); - - raw_parsetree_list = pg_parse_query(&stri, argtypes, nargs); + raw_parsetree_list = pg_parse_query(src, argtypes, nargs); /* * Do parse analysis and rule rewrite for each raw parsetree. -- cgit v1.2.3