ERROR type with domain defination
BaiShaoqi opened this issue · 2 comments
BaiShaoqi commented
Expected behavior
nnint_test
------------
(,3)
(1 row)
Actual behavior
ERROR: cache lookup failed for type 0 (lsyscache.c:2557)
Step to reproduce the behavior
CREATE DOMAIN nnint AS int CHECK (VALUE IS NOT NULL);
CREATE TYPE nnint_container AS (f1 int, f2 nnint);
CREATE FUNCTION nnint_test(x int, y int) RETURNS nnint_container AS $$
# container: plc_python_shared
return {'f1': x, 'f2': y}
$$ LANGUAGE plcontainer;
SELECT nnint_test(null, 3);
cf-gitbot commented
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.
The labels on this github issue will be updated when the story is started.
zhangh43 commented
DOMAIN not supported in PLContainer yet.