Skip to content

Issue while updating Stored Procedure using CLI #986

@abhishekkumams

Description

@abhishekkumams

Repro Steps

Initializing and adding a stored procedure entity

dab init -c test.json --database-type mssql
dab add Sptest -c test.json --source s001.test --source.type "stored-procedure" --source.params "id:1,name:Abhi" --permissions "anonymous:read"

Output

{
            "type": "stored-procedure",
            "object": "s001.test",
            "parameters": {
                "param1": 123,
                "param2": "hello",
                "param3": true
            }
 }

updating the source name

dab add Sptest -c test.json --source dbo.sptest
Wrong Output

{
            "type": "stored-procedure",
            "object": "dbo.sptest",
            "key-fields": []
 }

Expected Output

{
            "type": "stored-procedure",
            "object": "dbo.sptest",
            "parameters": {
                "param1": 123,
                "param2": "hello",
                "param3": true
            },

Metadata

Metadata

Labels

bugSomething isn't workingcli

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions