i.e.
pStaffID
pContactNo
pAddress
Since version 4.1.3, which is my current version, when adding parameters to the stored procedure component by linking to the stored procedure and clicking on the "Generate" button, it now adds parameters as follow:
i.e.
`pStaffID`
`pContactNo`
`pAddress`
Note the difference. Originally parameters were added without the "`" character. Since version 4.1.3, the parameters are now pre-and post fixed with the "`" character.
This causes a big problem when you already have code written that references the parameters without this "`" character, and you make a change to the stored procedure's parameters and need to re-add them to the UniDAC stored procedure component, as the code needs to be changed to now reference the parameters as follow:
Initial method to reference parameters in stored procedure component:
Code: Select all
UniStoredProc1.ParamByName('pStaffID').AsInteger := '1234';
UniStoredProc1.ParamByName('pContactNo').AsString := '555-5555';
UniStoredProc1.ParamByName('pAddress').AsString := '123 West Road';
Code: Select all
UniStoredProc1.ParamByName('`pStaffID`').AsInteger := '1234';
UniStoredProc1.ParamByName('`pContactNo`').AsString := '555-5555';
UniStoredProc1.ParamByName('`pAddress`').AsString := '123 West Road';
This is a major headache for an existing code base.
Please can you look at this and get back to me regarding this.
Thanks.