We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b513205 commit 9770452Copy full SHA for 9770452
doc/src/sgml/plpgsql.sgml
@@ -486,8 +486,8 @@ $$ LANGUAGE plpgsql;
486
CREATE FUNCTION extended_sales(p_itemno int)
487
RETURNS TABLE(quantity int, total numeric) AS $$
488
BEGIN
489
- RETURN QUERY SELECT quantity, quantity * price FROM sales
490
- WHERE itemno = p_itemno;
+ RETURN QUERY SELECT s.quantity, s.quantity * s.price FROM sales AS s
+ WHERE s.itemno = p_itemno;
491
END;
492
$$ LANGUAGE plpgsql;
493
</programlisting>
0 commit comments