Fix test failure with custom type

Fix tests that fail like so:
test=# CREATE CAST (customtype AS bigint)
test-# WITHOUT FUNCTION AS ASSIGNMENT;
ERROR:  source and target data types are not physically compatible
This commit is contained in:
gayyappan 2019-10-31 17:44:46 -04:00 committed by gayyappan
parent 1e75c27c16
commit 874b4512b2
2 changed files with 2 additions and 8 deletions

View File

@ -23,10 +23,7 @@ CREATE TYPE customtype (
OUTPUT = customtype_out,
RECEIVE = customtype_recv,
SEND = customtype_send,
INTERNALLENGTH = 8,
PASSEDBYVALUE,
ALIGNMENT = double,
STORAGE = plain
LIKE = TIMESTAMPTZ
);
CREATE CAST (customtype AS bigint)
WITHOUT FUNCTION AS ASSIGNMENT;

View File

@ -23,10 +23,7 @@ CREATE TYPE customtype (
OUTPUT = customtype_out,
RECEIVE = customtype_recv,
SEND = customtype_send,
INTERNALLENGTH = 8,
PASSEDBYVALUE,
ALIGNMENT = double,
STORAGE = plain
LIKE = TIMESTAMPTZ
);
CREATE CAST (customtype AS bigint)