mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
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.)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user