Aqua Data Studio 17.0.0-ga-4
Build #: 47801
Built on: 2015-Dec-15 07:09:53 PM
Issue: QA(MongoJS)-> CREATE script is not generating properly for Multiple collections
Steps:
1. In QA(MongoJS), execute below script to create collection and collection index
3. Open new QA(MongoJS) window, Select multiple collections (science and science2), <-- Issue
Right click, select option->Script Object to Window As->CREATE
In 'Script Create Objects' window, click on OK button.
script generated as below in QA(MongoJS) window:
GO
Observation:a] In QA(MongoJS) window, SQL script is generated for create collection instead mongojs script
b] For Index , 'MongoJS syntax is not supported' comment is not displayed
-- This issue is also observed in previous builds ADS17.0.0-dev-48 and ADS17.0.0-rc-47
-- In ADS17.0.0-rc-47, issue was fixed for single collection-script generation- #13868
Expected: a] create collection script should be in mongojs format [db.createCollection(..)]
b] For Index related script, message should be displayed in comment as below-
// MongoJS syntax is not supported for the selected object. Therefore, MongoSQL syntax has been generated.
|
219 KB
|
92 KB
|
106 KB
Fixed the following multi-select options:
- Script Object to Window As
- Script Object to New Window As
- Script Object to File As
When multiple objects are selected for scripting and all the objects are from MongoDB, we check if the syntax should be in MongoSQL or MongoJS and then generate the appropriate script.
If any of the selected objects are not from MongoDB, we'll generate SQL script for all the selected objects.
Verified in ADS17.0.0-ga-9
Please refer screenshot :Fixed-17ga9.png
Verified in ADS17.0.0-ga-9
Please refer screenshot :Fixed-17ga9.png
Issue #14007 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 17.0.0-ga-8 |
No time estimate |
1 issue link |
relates to #13868
Issue #13868MongoJS -> From Script Object to Window as, SQL scripts are generated instead of MongoJS for Database, Index, Roles,Users and collection fields. |
Fixed the following multi-select options:
- Script Object to Window As
- Script Object to New Window As
- Script Object to File As
When multiple objects are selected for scripting and all the objects are from MongoDB, we check if the syntax should be in MongoSQL or MongoJS and then generate the appropriate script.
If any of the selected objects are not from MongoDB, we'll generate SQL script for all the selected objects.