summaryrefslogtreecommitdiff
path: root/src/backend/executor/spi.c
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/backend/executor/spi.c
parent351372e585746538ef080bfe1219de3f3074a025 (diff)
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/backend/executor/spi.c')
-rw-r--r--src/backend/executor/spi.c8
1 files changed, 2 insertions, 6 deletions
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.