Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7507d59

Browse files
committed
Adjust examples to avoid using keywords as identifiers, per Honda Shigehiro.
1 parent 4717992 commit 7507d59

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

doc/src/sgml/ref/release_savepoint.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/release_savepoint.sgml,v 1.3 2004/11/27 21:27:07 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/release_savepoint.sgml,v 1.4 2005/01/06 20:53:34 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -94,9 +94,9 @@ RELEASE [ SAVEPOINT ] <replaceable>savepoint_name</replaceable>
9494
To establish and later destroy a savepoint:
9595
<programlisting>
9696
BEGIN;
97-
INSERT INTO table VALUES (3);
97+
INSERT INTO table1 VALUES (3);
9898
SAVEPOINT my_savepoint;
99-
INSERT INTO table VALUES (4);
99+
INSERT INTO table1 VALUES (4);
100100
RELEASE SAVEPOINT my_savepoint;
101101
COMMIT;
102102
</programlisting>

doc/src/sgml/ref/savepoint.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/savepoint.sgml,v 1.3 2004/09/20 00:04:19 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/savepoint.sgml,v 1.4 2005/01/06 20:53:34 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -83,11 +83,11 @@ SAVEPOINT <replaceable>savepoint_name</replaceable>
8383
after it was established:
8484
<programlisting>
8585
BEGIN;
86-
INSERT INTO table VALUES (1);
86+
INSERT INTO table1 VALUES (1);
8787
SAVEPOINT my_savepoint;
88-
INSERT INTO table VALUES (2);
88+
INSERT INTO table1 VALUES (2);
8989
ROLLBACK TO SAVEPOINT my_savepoint;
90-
INSERT INTO table VALUES (3);
90+
INSERT INTO table1 VALUES (3);
9191
COMMIT;
9292
</programlisting>
9393
The above transaction will insert the values 1 and 3, but not 2.
@@ -97,9 +97,9 @@ COMMIT;
9797
To establish and later destroy a savepoint:
9898
<programlisting>
9999
BEGIN;
100-
INSERT INTO table VALUES (3);
100+
INSERT INTO table1 VALUES (3);
101101
SAVEPOINT my_savepoint;
102-
INSERT INTO table VALUES (4);
102+
INSERT INTO table1 VALUES (4);
103103
RELEASE SAVEPOINT my_savepoint;
104104
COMMIT;
105105
</programlisting>

0 commit comments

Comments
 (0)