Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf6bb48f

Browse files
committed
Fix broken example in PL/pgSQL document.
Back-patch to all supported branches.Marti Raudsepp, per a report from Marko Tiikkaja
1 parent037b912 commitf6bb48f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎doc/src/sgml/plpgsql.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ $$ LANGUAGE plpgsql;
486486
CREATE FUNCTION extended_sales(p_itemno int)
487487
RETURNS TABLE(quantity int, total numeric) AS $$
488488
BEGIN
489-
RETURN QUERY SELECT quantity, quantity * price FROM sales
490-
WHERE itemno = p_itemno;
489+
RETURN QUERY SELECTs.quantity,s.quantity *s.price FROM sales AS s
490+
WHEREs.itemno = p_itemno;
491491
END;
492492
$$ LANGUAGE plpgsql;
493493
</programlisting>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp