Commit 0db2fc98 authored by Peter Eisentraut's avatar Peter Eisentraut

Update gratuitous use of MD5 in documentation

It seems some people are bothered by the outdated MD5 appearing in
example code.  So replace it with more modern alternatives or by
a different example function.
Reported-by: default avatarJon Wolski <jonwolski@gmail.com>
parent 10cfce34
...@@ -80,11 +80,11 @@ CREATE TABLE users ( ...@@ -80,11 +80,11 @@ CREATE TABLE users (
pass TEXT NOT NULL pass TEXT NOT NULL
); );
INSERT INTO users VALUES ( 'larry', md5(random()::text) ); INSERT INTO users VALUES ( 'larry', sha256(random()::text::bytea) );
INSERT INTO users VALUES ( 'Tom', md5(random()::text) ); INSERT INTO users VALUES ( 'Tom', sha256(random()::text::bytea) );
INSERT INTO users VALUES ( 'Damian', md5(random()::text) ); INSERT INTO users VALUES ( 'Damian', sha256(random()::text::bytea) );
INSERT INTO users VALUES ( 'NEAL', md5(random()::text) ); INSERT INTO users VALUES ( 'NEAL', sha256(random()::text::bytea) );
INSERT INTO users VALUES ( 'Bj&oslash;rn', md5(random()::text) ); INSERT INTO users VALUES ( 'Bj&oslash;rn', sha256(random()::text::bytea) );
SELECT * FROM users WHERE nick = 'Larry'; SELECT * FROM users WHERE nick = 'Larry';
</programlisting> </programlisting>
......
...@@ -370,7 +370,7 @@ $ sudo semodule -r sepgsql-regtest ...@@ -370,7 +370,7 @@ $ sudo semodule -r sepgsql-regtest
<para> <para>
For example, consider: For example, consider:
<synopsis> <synopsis>
UPDATE t1 SET x = 2, y = md5sum(y) WHERE z = 100; UPDATE t1 SET x = 2, y = func1(y) WHERE z = 100;
</synopsis> </synopsis>
Here, <literal>db_column:update</literal> will be checked for Here, <literal>db_column:update</literal> will be checked for
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment