diff options
author | Neil Conway <neilc@samurai.com> | 2004-05-30 23:40:41 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2004-05-30 23:40:41 +0000 |
commit | 72b6ad6313387110cb36b69a3732cd0936c3eba4 (patch) | |
tree | e43da77aaeb3a9d7f4997ddb2b91ae88001ea462 /src/backend/nodes/print.c | |
parent | ec0b1f271639ff0fafd1310de3c47cbb214c6294 (diff) | |
download | postgresql-72b6ad6313387110cb36b69a3732cd0936c3eba4.tar.gz postgresql-72b6ad6313387110cb36b69a3732cd0936c3eba4.zip |
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.
Diffstat (limited to 'src/backend/nodes/print.c')
-rw-r--r-- | src/backend/nodes/print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/nodes/print.c b/src/backend/nodes/print.c index 8da0726d7cc..4934c09e2b3 100644 --- a/src/backend/nodes/print.c +++ b/src/backend/nodes/print.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/print.c,v 1.67 2004/05/26 04:41:19 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/print.c,v 1.68 2004/05/30 23:40:27 neilc Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -333,7 +333,7 @@ print_expr(Node *expr, List *rtable) RangeTblEntry *rte; Assert(var->varno > 0 && - (int) var->varno <= length(rtable)); + (int) var->varno <= list_length(rtable)); rte = rt_fetch(var->varno, rtable); relname = rte->eref->aliasname; attname = get_rte_attribute_name(rte, var->varattno); @@ -378,7 +378,7 @@ print_expr(Node *expr, List *rtable) char *opname; opname = get_opname(e->opno); - if (length(e->args) > 1) + if (list_length(e->args) > 1) { print_expr(get_leftop((Expr *) e), rtable); printf(" %s ", ((opname != NULL) ? opname : "(invalid operator)")); |