Stored Procedures were recently added to the Amazon Redshift platforms. Aqua Data Studio needs to support stored procedure objects.
ADS areas that need to change:
Hi Vaibhav,
Can we do a null check in ExtractProcedure?
[Jahid] thanks for the feedback @tom, I have added the null checks.
[Jahid] thanks for the feedback @tom, I have added the null checks.
Hi Vaibhav, Jahid,
Why did we add this in ProcedureEditor? It does not support Redshift?
Hi Vaibhav, Jahid,
Why did we add this in ProcedureEditor? It does not support Redshift?
Hi Jahid,
We can skip the dependencies since it doesn't seem to support it. Permissions doesn't have to be added to be consistent with PostgreSQL. I believe permission is just a user being granted privileges to the sp.
We should implement the rename. In the alter gui, allow the user to change the name and under the covers execute:
Hi Jahid,
We can skip the dependencies since it doesn't seem to support it. Permissions doesn't have to be added to be consistent with PostgreSQL. I believe permission is just a user being granted privileges to the sp.
We should implement the rename. In the alter gui, allow the user to change the name and under the covers execute:
Hi Tom,
Thank a lot for your inputs.
1. Regarding showMessageDialog msg - please note this message mentions the dbs where Create Procedure in editor functionality is supported.
2. Thanks, I have implemented the Rename functionality in Alter procedure for redshift now
Hi Tom,
Thank a lot for your inputs.
1. Regarding showMessageDialog msg - please note this message mentions the dbs where Create Procedure in editor functionality is supported.
2. Thanks, I have implemented the Rename functionality in Alter procedure for redshift now
[Jahid]
Code checked in under following revisions
58538
58551
58567
58561
58563
[Jahid]
Code checked in under following revisions
58538
58551
58567
58561
58563
Hi Tom,
Grant and Revoke option is not generating any query in the query analyzer for stored procedure.
Is it an expected behaviour or not.
Thanks,
Shubham Tripathi
Hi Tom,
Grant and Revoke option is not generating any query in the query analyzer for stored procedure.
Is it an expected behaviour or not.
Thanks,
Shubham Tripathi
Hi Shubham,
Although this is possible to implement, it seems that grant and revoke do not work for stored procedures across most of the databases in ADS. So I guess it is expected behavior. Let's not worry about it right now.
Thanks for pointing that out,
Tom
Some samples of grant and revoke...
GRANT EXECUTE on PROCEDURE "tom1"."public"."update_comp3" (IN p_name varchar, OUT p_out int4) to "tom"
Hi Shubham,
Although this is possible to implement, it seems that grant and revoke do not work for stored procedures across most of the databases in ADS. So I guess it is expected behavior. Let's not worry about it right now.
Thanks for pointing that out,
Tom
Some samples of grant and revoke...
GRANT EXECUTE on PROCEDURE "tom1"."public"."update_comp3" (IN p_name varchar, OUT p_out int4) to "tom"
assigning to automation for further action on this
assigning to automation for further action on this
Hi Team,
When I operate the schema generator for all table, view and procedure objects, I only see one procedure in the preview window? Please see email that I sent to Jahid.
Thanks,
Tom
Hi Team,
When I operate the schema generator for all table, view and procedure objects, I only see one procedure in the preview window? Please see email that I sent to Jahid.
Thanks,
Tom
Hi Tom,
Can you please let me know if there is any other options/setting you had chosen other than using double quote and preview tab for generating the scripts?
I just an a preview on your db (tom1) from my local build and i see all procedures appearing in preview tab.
Please check once more!
Hi Tom,
Can you please let me know if there is any other options/setting you had chosen other than using double quote and preview tab for generating the scripts?
I just an a preview on your db (tom1) from my local build and i see all procedures appearing in preview tab.
Please check once more!
Hi Tom,
I tried to debug this issue of preview tab for procedures on this 10.220.202.3 machine.
One strange behavior i see that the $$ sign is somehow replaced with 'true' on this machine whether generating the script from schema generator or via scripting (script object as-Procedure)
-------------------------------------following script is from 10.220.202.3 -------------------------
-------------------------------------following script is from local build on same tom1 db-------------------------
Hi Tom,
I tried to debug this issue of preview tab for procedures on this 10.220.202.3 machine.
One strange behavior i see that the $$ sign is somehow replaced with 'true' on this machine whether generating the script from schema generator or via scripting (script object as-Procedure)
-------------------------------------following script is from 10.220.202.3 -------------------------
-------------------------------------following script is from local build on same tom1 db-------------------------
Hi Jahid,
Not sure what you are asking above...
Since I guess I wasn't clear enough in my note on how to fix this, I coded up a patch which is attached to fix this issue for Redshift. You now have to apply the same logic to Snowflake and populate the _specificName variable in ExtractProcedure.
Hope that helps,
Tom
Hi Jahid,
Not sure what you are asking above...
Since I guess I wasn't clear enough in my note on how to fix this, I coded up a patch which is attached to fix this issue for Redshift. You now have to apply the same logic to Snowflake and populate the _specificName variable in ExtractProcedure.
Hope that helps,
Tom
As per tom's comment the code changes for redshift and snowflakes are committed to Revision No #58781
As per tom's comment the code changes for redshift and snowflakes are committed to Revision No #58781
QA verified the issue has been resolved and its working fine now.
Build: Build-\\172.20.32.12\Divisions\Divisions\Aquafold\datastudio\v22.0.0-dev-49-no-ofsc
VM - 10.220.202.3
Os Windows 8.1
QA verified the issue has been resolved and its working fine now.
Build: Build-\\172.20.32.12\Divisions\Divisions\Aquafold\datastudio\v22.0.0-dev-49-no-ofsc
VM - 10.220.202.3
Os Windows 8.1
Automation verified. Please find the test run below.
https://idera.testrail.net/index.php?/runs/view/4381
Automation verified. Please find the test run below.
https://idera.testrail.net/index.php?/runs/view/4381
Issue #15803 |
Verified |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build dev-44 |
No time estimate |
1 issue link |
relates to #15845
Issue #15845Amazon redshift: Alter is not working properly for stored procedures in Amazon Redshift |
Hi Vaibhav,
Can we do a null check in ExtractProcedure?
Tom