Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
8423bf4f
Commit
8423bf4f
authored
7 years ago
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chkpass: Add test suite
Reviewed-by:
David Steele
<
david@pgmasters.net
>
parent
4cb89d83
REL_14_STABLE
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
0 deletions
+31
-0
contrib/chkpass/.gitignore
contrib/chkpass/.gitignore
+4
-0
contrib/chkpass/Makefile
contrib/chkpass/Makefile
+2
-0
contrib/chkpass/expected/chkpass.out
contrib/chkpass/expected/chkpass.out
+18
-0
contrib/chkpass/sql/chkpass.sql
contrib/chkpass/sql/chkpass.sql
+7
-0
No files found.
contrib/chkpass/.gitignore
0 → 100644
View file @
8423bf4f
# Generated subdirectories
/log/
/results/
/tmp_check/
This diff is collapsed.
Click to expand it.
contrib/chkpass/Makefile
View file @
8423bf4f
...
...
@@ -9,6 +9,8 @@ PGFILEDESC = "chkpass - encrypted password data type"
SHLIB_LINK
=
$(
filter
-lcrypt
,
$(LIBS)
)
REGRESS
=
chkpass
ifdef
USE_PGXS
PG_CONFIG
=
pg_config
PGXS
:=
$(
shell
$(PG_CONFIG)
--pgxs
)
...
...
This diff is collapsed.
Click to expand it.
contrib/chkpass/expected/chkpass.out
0 → 100644
View file @
8423bf4f
CREATE EXTENSION chkpass;
WARNING: type input function chkpass_in should not be volatile
CREATE TABLE test (i int, p chkpass);
INSERT INTO test VALUES (1, 'hello'), (2, 'goodbye');
SELECT i, p = 'hello' AS "hello?" FROM test;
i | hello?
---+--------
1 | t
2 | f
(2 rows)
SELECT i, p <> 'hello' AS "!hello?" FROM test;
i | !hello?
---+---------
1 | f
2 | t
(2 rows)
This diff is collapsed.
Click to expand it.
contrib/chkpass/sql/chkpass.sql
0 → 100644
View file @
8423bf4f
CREATE
EXTENSION
chkpass
;
CREATE
TABLE
test
(
i
int
,
p
chkpass
);
INSERT
INTO
test
VALUES
(
1
,
'hello'
),
(
2
,
'goodbye'
);
SELECT
i
,
p
=
'hello'
AS
"hello?"
FROM
test
;
SELECT
i
,
p
<>
'hello'
AS
"!hello?"
FROM
test
;
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment