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 80ddb59 commit a0c58b5Copy full SHA for a0c58b5
doc/src/sgml/plpgsql.sgml
@@ -487,8 +487,8 @@ $$ LANGUAGE plpgsql;
487
CREATE FUNCTION extended_sales(p_itemno int)
488
RETURNS TABLE(quantity int, total numeric) AS $$
489
BEGIN
490
- RETURN QUERY SELECT quantity, quantity * price FROM sales
491
- WHERE itemno = p_itemno;
+ RETURN QUERY SELECT s.quantity, s.quantity * s.price FROM sales AS s
+ WHERE s.itemno = p_itemno;
492
END;
493
$$ LANGUAGE plpgsql;
494
</programlisting>
0 commit comments