Skip to content

Simple types are mapped to complex ones #3

@ankarion

Description

@ankarion
create function test2(val jsonb) returns jsonb
language plpythonu
transform for type jsonb
as $$
assert isinstance(val,int)
print (val)
return (val)
$$;

select test2('1'::jsonb);

Assert says that it's not an int - it's an array of 1 int element

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions