mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Use the new List API function names throughout the backend, and disable the
list compatibility API by default. While doing this, I decided to keep the llast() macro around and introduce llast_int() and llast_oid() variants.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* procedural language
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.101 2004/05/26 04:41:48 neilc Exp $
|
||||
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.102 2004/05/30 23:40:41 neilc Exp $
|
||||
*
|
||||
* This software is copyrighted by Jan Wieck - Hamburg.
|
||||
*
|
||||
@@ -3835,7 +3835,7 @@ exec_simple_check_plan(PLpgSQL_expr * expr)
|
||||
* 1. We can only evaluate queries that resulted in one single
|
||||
* execution plan
|
||||
*/
|
||||
if (length(spi_plan->ptlist) != 1)
|
||||
if (list_length(spi_plan->ptlist) != 1)
|
||||
return;
|
||||
|
||||
plan = (Plan *) linitial(spi_plan->ptlist);
|
||||
@@ -3862,7 +3862,7 @@ exec_simple_check_plan(PLpgSQL_expr * expr)
|
||||
/*
|
||||
* 4. The plan must have a single attribute as result
|
||||
*/
|
||||
if (length(plan->targetlist) != 1)
|
||||
if (list_length(plan->targetlist) != 1)
|
||||
return;
|
||||
|
||||
tle = (TargetEntry *) linitial(plan->targetlist);
|
||||
|
@@ -31,7 +31,7 @@
|
||||
* ENHANCEMENTS, OR MODIFICATIONS.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/pl/tcl/pltcl.c,v 1.84 2004/05/26 04:41:50 neilc Exp $
|
||||
* $PostgreSQL: pgsql/src/pl/tcl/pltcl.c,v 1.85 2004/05/30 23:40:41 neilc Exp $
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
@@ -1868,9 +1868,9 @@ pltcl_SPI_prepare(ClientData cdata, Tcl_Interp *interp,
|
||||
qdesc->argtypelems[i] = ((Form_pg_type) GETSTRUCT(typeTup))->typelem;
|
||||
ReleaseSysCache(typeTup);
|
||||
|
||||
freeList(typename->names);
|
||||
list_free(typename->names);
|
||||
pfree(typename);
|
||||
freeList(names);
|
||||
list_free(names);
|
||||
pfree(argcopy);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user