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
b7332c92
Commit
b7332c92
authored
May 09, 1999
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct type_sanity test so it doesn't spit up on new
definition of numeric_in.
parent
0b69d8a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
src/test/regress/expected/type_sanity.out
src/test/regress/expected/type_sanity.out
+4
-3
src/test/regress/sql/type_sanity.sql
src/test/regress/sql/type_sanity.sql
+4
-7
No files found.
src/test/regress/expected/type_sanity.out
View file @
b7332c92
...
@@ -40,7 +40,7 @@ QUERY: SELECT p1.oid, p1.typname, p2.oid, p2.proname
...
@@ -40,7 +40,7 @@ QUERY: SELECT p1.oid, p1.typname, p2.oid, p2.proname
FROM pg_type AS p1, pg_proc AS p2
FROM pg_type AS p1, pg_proc AS p2
WHERE p1.typinput = p2.oid AND p1.typtype = 'b' AND
WHERE p1.typinput = p2.oid AND p1.typtype = 'b' AND
(p2.pronargs != 1 OR p2.proretset) AND
(p2.pronargs != 1 OR p2.proretset) AND
(p2.pronargs != 3 OR p2.proretset OR p
1.typelem = 0
);
(p2.pronargs != 3 OR p2.proretset OR p
2.proargtypes[2] != 23
);
oid|typname|oid|proname
oid|typname|oid|proname
---+-------+---+-------
---+-------+---+-------
(0 rows)
(0 rows)
...
@@ -58,7 +58,7 @@ QUERY: SELECT p1.oid, p1.typname, p2.oid, p2.proname
...
@@ -58,7 +58,7 @@ QUERY: SELECT p1.oid, p1.typname, p2.oid, p2.proname
FROM pg_type AS p1, pg_proc AS p2
FROM pg_type AS p1, pg_proc AS p2
WHERE p1.typreceive = p2.oid AND p1.typtype = 'b' AND
WHERE p1.typreceive = p2.oid AND p1.typtype = 'b' AND
(p2.pronargs != 1 OR p2.proretset) AND
(p2.pronargs != 1 OR p2.proretset) AND
(p2.pronargs != 3 OR p2.proretset OR p
1.typelem = 0
);
(p2.pronargs != 3 OR p2.proretset OR p
2.proargtypes[2] != 23
);
oid|typname|oid|proname
oid|typname|oid|proname
---+-------+---+-------
---+-------+---+-------
(0 rows)
(0 rows)
...
@@ -74,7 +74,8 @@ oid|typname|oid|proname
...
@@ -74,7 +74,8 @@ oid|typname|oid|proname
QUERY: SELECT p1.oid, p1.relname
QUERY: SELECT p1.oid, p1.relname
FROM pg_class as p1
FROM pg_class as p1
WHERE (p1.relkind != 'r' AND p1.relkind != 'i' AND p1.relkind != 's');
WHERE (p1.relkind != 'r' AND p1.relkind != 'i' AND
p1.relkind != 's' AND p1.relkind != 'S');
oid|relname
oid|relname
---+-------
---+-------
(0 rows)
(0 rows)
...
...
src/test/regress/sql/type_sanity.sql
View file @
b7332c92
...
@@ -49,8 +49,6 @@ WHERE p1.typtype != 'c' AND
...
@@ -49,8 +49,6 @@ WHERE p1.typtype != 'c' AND
p1
.
typreceive
=
0
OR
p1
.
typsend
=
0
);
p1
.
typreceive
=
0
OR
p1
.
typsend
=
0
);
-- Check for bogus typinput routines
-- Check for bogus typinput routines
-- The first OR subclause detects bogus non-array cases,
-- the second one detects bogus array cases.
-- FIXME: ought to check prorettype, but there are special cases that make it
-- FIXME: ought to check prorettype, but there are special cases that make it
-- hard: prorettype might be binary-compatible with the type but not the same,
-- hard: prorettype might be binary-compatible with the type but not the same,
-- and for array types array_in's result has nothing to do with anything.
-- and for array types array_in's result has nothing to do with anything.
...
@@ -59,7 +57,7 @@ SELECT p1.oid, p1.typname, p2.oid, p2.proname
...
@@ -59,7 +57,7 @@ SELECT p1.oid, p1.typname, p2.oid, p2.proname
FROM
pg_type
AS
p1
,
pg_proc
AS
p2
FROM
pg_type
AS
p1
,
pg_proc
AS
p2
WHERE
p1
.
typinput
=
p2
.
oid
AND
p1
.
typtype
=
'b'
AND
WHERE
p1
.
typinput
=
p2
.
oid
AND
p1
.
typtype
=
'b'
AND
(
p2
.
pronargs
!=
1
OR
p2
.
proretset
)
AND
(
p2
.
pronargs
!=
1
OR
p2
.
proretset
)
AND
(
p2
.
pronargs
!=
3
OR
p2
.
proretset
OR
p
1
.
typelem
=
0
);
(
p2
.
pronargs
!=
3
OR
p2
.
proretset
OR
p
2
.
proargtypes
[
2
]
!=
23
);
-- Check for bogus typoutput routines
-- Check for bogus typoutput routines
-- The first OR subclause detects bogus non-array cases,
-- The first OR subclause detects bogus non-array cases,
...
@@ -73,8 +71,6 @@ WHERE p1.typoutput = p2.oid AND p1.typtype = 'b' AND
...
@@ -73,8 +71,6 @@ WHERE p1.typoutput = p2.oid AND p1.typtype = 'b' AND
(
p2
.
pronargs
!=
2
OR
p2
.
proretset
OR
p1
.
typelem
=
0
);
(
p2
.
pronargs
!=
2
OR
p2
.
proretset
OR
p1
.
typelem
=
0
);
-- Check for bogus typreceive routines
-- Check for bogus typreceive routines
-- The first OR subclause detects bogus non-array cases,
-- the second one detects bogus array cases.
-- FIXME: ought to check prorettype, but there are special cases that make it
-- FIXME: ought to check prorettype, but there are special cases that make it
-- hard: prorettype might be binary-compatible with the type but not the same,
-- hard: prorettype might be binary-compatible with the type but not the same,
-- and for array types array_in's result has nothing to do with anything.
-- and for array types array_in's result has nothing to do with anything.
...
@@ -83,7 +79,7 @@ SELECT p1.oid, p1.typname, p2.oid, p2.proname
...
@@ -83,7 +79,7 @@ SELECT p1.oid, p1.typname, p2.oid, p2.proname
FROM
pg_type
AS
p1
,
pg_proc
AS
p2
FROM
pg_type
AS
p1
,
pg_proc
AS
p2
WHERE
p1
.
typreceive
=
p2
.
oid
AND
p1
.
typtype
=
'b'
AND
WHERE
p1
.
typreceive
=
p2
.
oid
AND
p1
.
typtype
=
'b'
AND
(
p2
.
pronargs
!=
1
OR
p2
.
proretset
)
AND
(
p2
.
pronargs
!=
1
OR
p2
.
proretset
)
AND
(
p2
.
pronargs
!=
3
OR
p2
.
proretset
OR
p
1
.
typelem
=
0
);
(
p2
.
pronargs
!=
3
OR
p2
.
proretset
OR
p
2
.
proargtypes
[
2
]
!=
23
);
-- Check for bogus typsend routines
-- Check for bogus typsend routines
-- The first OR subclause detects bogus non-array cases,
-- The first OR subclause detects bogus non-array cases,
...
@@ -102,7 +98,8 @@ WHERE p1.typsend = p2.oid AND p1.typtype = 'b' AND
...
@@ -102,7 +98,8 @@ WHERE p1.typsend = p2.oid AND p1.typtype = 'b' AND
SELECT
p1
.
oid
,
p1
.
relname
SELECT
p1
.
oid
,
p1
.
relname
FROM
pg_class
as
p1
FROM
pg_class
as
p1
WHERE
(
p1
.
relkind
!=
'r'
AND
p1
.
relkind
!=
'i'
AND
p1
.
relkind
!=
's'
);
WHERE
(
p1
.
relkind
!=
'r'
AND
p1
.
relkind
!=
'i'
AND
p1
.
relkind
!=
's'
AND
p1
.
relkind
!=
'S'
);
-- Indexes should have an access method, others not.
-- Indexes should have an access method, others not.
...
...
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