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

Commit0fbb172

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 parentd9a1e9d commit0fbb172

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
@@ -484,8 +484,8 @@ $$ LANGUAGE plpgsql;
484484
CREATE FUNCTION extended_sales(p_itemno int)
485485
RETURNS TABLE(quantity int, total numeric) AS $$
486486
BEGIN
487-
RETURN QUERY SELECT quantity, quantity * price FROM sales
488-
WHERE itemno = p_itemno;
487+
RETURN QUERY SELECTs.quantity,s.quantity *s.price FROM sales AS s
488+
WHEREs.itemno = p_itemno;
489489
END;
490490
$$ LANGUAGE plpgsql;
491491
</programlisting>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp