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

Commit0db2fc9

Browse files
committed
Update gratuitous use of MD5 in documentation
It seems some people are bothered by the outdated MD5 appearing inexample code. So replace it with more modern alternatives or bya different example function.Reported-by: Jon Wolski <jonwolski@gmail.com>
1 parent10cfce3 commit0db2fc9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎doc/src/sgml/citext.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ CREATE TABLE users (
8080
pass TEXT NOT NULL
8181
);
8282

83-
INSERT INTO users VALUES ( 'larry',md5(random()::text) );
84-
INSERT INTO users VALUES ( 'Tom',md5(random()::text) );
85-
INSERT INTO users VALUES ( 'Damian',md5(random()::text) );
86-
INSERT INTO users VALUES ( 'NEAL',md5(random()::text) );
87-
INSERT INTO users VALUES ( 'Bj&oslash;rn',md5(random()::text) );
83+
INSERT INTO users VALUES ( 'larry',sha256(random()::text::bytea) );
84+
INSERT INTO users VALUES ( 'Tom',sha256(random()::text::bytea) );
85+
INSERT INTO users VALUES ( 'Damian',sha256(random()::text::bytea) );
86+
INSERT INTO users VALUES ( 'NEAL',sha256(random()::text::bytea) );
87+
INSERT INTO users VALUES ( 'Bj&oslash;rn',sha256(random()::text::bytea) );
8888

8989
SELECT * FROM users WHERE nick = 'Larry';
9090
</programlisting>

‎doc/src/sgml/sepgsql.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ $ sudo semodule -r sepgsql-regtest
370370
<para>
371371
For example, consider:
372372
<synopsis>
373-
UPDATE t1 SET x = 2, y =md5sum(y) WHERE z = 100;
373+
UPDATE t1 SET x = 2, y =func1(y) WHERE z = 100;
374374
</synopsis>
375375

376376
Here, <literal>db_column:update</literal> will be checked for

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp