Skip to content

SQL function and Perl code parameters mismatch. #8919

@aungzwin10

Description

@aungzwin10

Version

1.12.10

What browsers are you seeing the problem on?

This problem isn't browser related

What happened?

The parameters in SQL function(asset__get and asset_report__save) and Perl code are mismatch.

-- SQL
CREATE OR REPLACE FUNCTION asset_report__save
(in_id int, in_report_date date, in_report_class int, in_asset_class int, in_submit bool)

-- PERL
my ($ref) = $request->call_procedure(
            funcname => 'asset_report__save',
            args     => [
                $request->@{qw( id report_date report_class asset_class )}
            ]);
-- SQL
CREATE OR REPLACE FUNCTION asset__get
(in_id int, in_tag text)

-- PERL
my ($ref) = $request->call_procedure( funcname => 'asset__get', args => [ $request->{id} ]);

What should have happened?

Parameters should match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions