这是indexloc提供的服务,不要输入任何密码
Skip to content

Rpc call fails when return value is a simple int/float value #81

@Marenz

Description

@Marenz

To Reproduce

Create a POSTGRESQL function

CREATE OR REPLACE FUNCTION challenge_user(
    _challenged uuid
)
RETURNS BIGINT AS $$
DECLARE
    v_match_id BIGINT;
BEGIN
...
END

Call it:

var task = Supabase.database.Rpc("challenge_user", {"_challenged": null})
await task.completed

Expected behavior

Get return value in task.data

Actual Bbehavior

Program stops with error:

Invalid call. Nonexistent function 'is_empty' in base 'float'.

on this line

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions