diff options
| author | Tom Lane | 2003-04-27 20:09:44 +0000 |
|---|---|---|
| committer | Tom Lane | 2003-04-27 20:09:44 +0000 |
| commit | 982430f8469dfc0fd9d9196862f34a2c3fc7dc13 (patch) | |
| tree | 5f672e30ddd44b4548ba3e18f534fd5008bf3fa8 /src/backend/optimizer | |
| parent | 351372e585746538ef080bfe1219de3f3074a025 (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/optimizer')
| -rw-r--r-- | src/backend/optimizer/util/clauses.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/backend/optimizer/util/clauses.c b/src/backend/optimizer/util/clauses.c index 72a55be667b..778fc3a2bb9 100644 --- a/src/backend/optimizer/util/clauses.c +++ b/src/backend/optimizer/util/clauses.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.134 2003/04/08 23:20:01 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.135 2003/04/27 20:09:44 tgl Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -1692,7 +1692,6 @@ inline_function(Oid funcid, Oid result_type, List *args, bool isNull; MemoryContext oldcxt; MemoryContext mycxt; - StringInfoData stri; List *raw_parsetree_list; List *querytree_list; Query *querytree; @@ -1752,10 +1751,7 @@ inline_function(Oid funcid, Oid result_type, List *args, * we care about. Also, we can punt as soon as we detect more than * one command in the function body. */ - initStringInfo(&stri); - appendStringInfo(&stri, "%s", src); - - raw_parsetree_list = pg_parse_query(&stri, + raw_parsetree_list = pg_parse_query(src, funcform->proargtypes, funcform->pronargs); if (length(raw_parsetree_list) != 1) |
