Skip to content

Commit 7dc6ae3

Browse files
committed
Doc: fix bogus example.
This wasn't incorrect SQL, but it was doing cm-to-inch conversion backward, so it might confuse readers. Per bug #15849 from TAKATSUKA Haruka. Discussion: https://postgr.es/m/15849-37ad0c561a836107@postgresql.org
1 parent 9729c93 commit 7dc6ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/ddl.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ CREATE TABLE products (
259259
CREATE TABLE people (
260260
...,
261261
height_cm numeric,
262-
height_in numeric <emphasis>GENERATED ALWAYS AS (height_cm * 2.54) STORED</emphasis>
262+
height_in numeric <emphasis>GENERATED ALWAYS AS (height_cm / 2.54) STORED</emphasis>
263263
);
264264
</programlisting>
265265
The keyword <literal>STORED</literal> must be specified to choose the

0 commit comments

Comments
 (0)