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

Commit754b5e1

Browse files
committed
More < and > changes to ampersands.
8.0.X and HEAD.
1 parent1ced129 commit754b5e1

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

‎doc/src/sgml/ref/create_table.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/create_table.sgml,v 1.90 2005/01/05 18:03:19 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.91 2005/01/22 23:22:17 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -732,7 +732,7 @@ CREATE TABLE films (
732732

733733
<programlisting>
734734
CREATE TABLE distributors (
735-
did integer CHECK (did> 100),
735+
did integer CHECK (did&gt; 100),
736736
name varchar(40)
737737
);
738738
</programlisting>
@@ -745,7 +745,7 @@ CREATE TABLE distributors (
745745
CREATE TABLE distributors (
746746
did integer,
747747
name varchar(40)
748-
CONSTRAINT con1 CHECK (did> 100 AND name &lt;&gt; '')
748+
CONSTRAINT con1 CHECK (did&gt; 100 AND name &lt;&gt; '')
749749
);
750750
</programlisting>
751751
</para>

‎doc/src/sgml/ref/grant.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/grant.sgml,v 1.44 2004/11/05 19:15:51 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/grant.sgml,v 1.45 2005/01/22 23:22:18 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -308,7 +308,7 @@ GRANT { CREATE | ALL [ PRIVILEGES ] }
308308
Use <xref linkend="app-psql">'s <command>\z</command> command
309309
to obtain information about existing privileges, for example:
310310
<programlisting>
311-
=> \z mytable
311+
=&gt; \z mytable
312312

313313
Access privileges for database "lusitania"
314314
Schema | Name | Type | Access privileges

‎doc/src/sgml/ref/lock.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/lock.sgml,v 1.45 2005/01/04 00:39:53 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/lock.sgml,v 1.46 2005/01/22 23:22:19 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -210,8 +210,8 @@ COMMIT WORK;
210210
BEGIN WORK;
211211
LOCK TABLE films IN SHARE ROW EXCLUSIVE MODE;
212212
DELETE FROM films_user_comments WHERE id IN
213-
(SELECT id FROM films WHERE rating< 5);
214-
DELETE FROM films WHERE rating< 5;
213+
(SELECT id FROM films WHERE rating&lt; 5);
214+
DELETE FROM films WHERE rating&lt; 5;
215215
COMMIT WORK;
216216
</programlisting>
217217
</para>

‎doc/src/sgml/ref/psql-ref.sgml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.131 2005/01/22 22:31:52 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.132 2005/01/2223:22:19 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -2179,11 +2179,11 @@ testdb=&gt; <userinput>INSERT INTO my_table VALUES (:content);</userinput>
21792179
they don't cause a syntax error when the second line is processed. This
21802180
could be done with the program <command>sed</command>:
21812181
<programlisting>
2182-
testdb=&gt; <userinput>\set content '\'' `sed -e "s/'/\\\\\\'/g"< my_file.txt` '\''</userinput>
2182+
testdb=&gt; <userinput>\set content '\'' `sed -e "s/'/\\\\\\'/g"&lt; my_file.txt` '\''</userinput>
21832183
</programlisting>
21842184
Observe the correct number of backslashes (6)! It works
21852185
this way: After <application>psql</application> has parsed this
2186-
line, it passes <literal>sed -e "s/'/\\\'/g"< my_file.txt</literal>
2186+
line, it passes <literal>sed -e "s/'/\\\'/g"&lt; my_file.txt</literal>
21872187
to the shell. The shell will do its own thing inside the double
21882188
quotes and execute <command>sed</command> with the arguments
21892189
<literal>-e</literal> and <literal>s/'/\\'/g</literal>. When
@@ -2243,8 +2243,8 @@ testdb=&gt; <userinput>\set content '\'' `sed -e "s/'/\\\\\\'/g" < my_file.txt`
22432243
The full host name (with domain name) of the database server,
22442244
or <literal>[local]</literal> if the connection is over a Unix
22452245
domain socket, or
2246-
<literal>[local:<replaceable>/dir/name</replaceable>]</literal
2247-
>,if the Unix domain socket is not at the compiled in default
2246+
<literal>[local:<replaceable>/dir/name</replaceable>]</literal>,
2247+
if the Unix domain socket is not at the compiled in default
22482248
location.
22492249
</para>
22502250
</listitem>
@@ -2632,8 +2632,8 @@ Field separator is "oo".
26322632
input. Notice the changing prompt:
26332633
<programlisting>
26342634
testdb=&gt; <userinput>CREATE TABLE my_table (</userinput>
2635-
testdb(> <userinput> first integer not null default 0,</userinput>
2636-
testdb(> <userinput> second text)</userinput>
2635+
testdb(&gt; <userinput> first integer not null default 0,</userinput>
2636+
testdb(&gt; <userinput> second text)</userinput>
26372637
testdb-&gt; <userinput>;</userinput>
26382638
CREATE TABLE
26392639
</programlisting>

‎doc/src/sgml/ref/reindex.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/reindex.sgml,v 1.25 2004/11/04 19:08:08 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/reindex.sgml,v 1.26 2005/01/22 23:22:19 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -234,8 +234,8 @@ REINDEX INDEX my_index;
234234
$ <userinput>export PGOPTIONS="-P"</userinput>
235235
$ <userinput>psql broken_db</userinput>
236236
...
237-
broken_db=> REINDEX DATABASE broken_db;
238-
broken_db=> \q
237+
broken_db=&gt; REINDEX DATABASE broken_db;
238+
broken_db=&gt; \q
239239
</programlisting>
240240
</para>
241241
</refsect1>

‎doc/src/sgml/ref/select.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.80 2005/01/04 08:59:45 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.81 2005/01/22 23:22:19 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -874,7 +874,7 @@ SELECT kind, sum(len) AS total FROM films GROUP BY kind;
874874
SELECT kind, sum(len) AS total
875875
FROM films
876876
GROUP BY kind
877-
HAVING sum(len)< interval '5 hours';
877+
HAVING sum(len)&lt; interval '5 hours';
878878

879879
kind | total
880880
----------+-------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp