You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/appstore/use-content/platform-supported-content/modules/database-connector-mx10.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,9 @@ This connector supports the following statements:
55
55
56
56
### Limitations
57
57
58
-
*`SELECT` queries and `Stored Procedure` can be saved only if they are successfully executed and a response structure is created
58
+
*`SELECT` queries and `Stored Procedure` can be saved only if they are successfully executed and a response structure is created (this is no longer a limitation as of Studio Pro 10.20)
59
59
* The connector supports columns and stored procedure parameters with primitive data types only
60
-
* If column names contain special characters, use an alias for the column name
60
+
* If column names contain special characters, use an alias for the column name (this is no longer a limitation as of Studio Pro 10.20)
61
61
* Parameters are only supported for filter values (prepared statements)
62
62
* Certificate-based authentication for PostgreSQL is not supported on macOS
63
63
@@ -123,6 +123,18 @@ Then, use the parameter in the query:
123
123
124
124
`select * from customers where contactFirstName like {paramFirstName}`
125
125
126
+
{{% alert color="info" %}}
127
+
If you need to pass a list of values to a parameter, you can use the following approach:
128
+
129
+
`WITH empids AS (
130
+
SELECT empid FROM json_table( {EmpIdList}, '$[*]' columns ( empid number path '$' ))
131
+
)
132
+
SELECT *
133
+
FROM emp WHERE empno IN (SELECT empid FROM empids);`
134
+
135
+
where parameter `EmpIdList` is of type String with the value `[1,7946,3,4,7942,7943,7945]`.
136
+
{{% /alert %}}
137
+
126
138
### Using Query Response {#use-query-response}
127
139
128
140
After [querying the database](#query-database), you can view the response in the **Response** screen.
@@ -166,6 +178,14 @@ You can now use the microflow in your app. Below is an example of a configured m
166
178
See the [Integration Activities](/refguide/integration-activities/) section of the *Studio Pro Guide* for further explanation of the properties in this activity.
167
179
See the [Call Stored Procedure](/howto/integration/use-the-external-database-connector/) section of *Use the External Database Connector* for more information on how to call a stored procedure.
168
180
181
+
### Saving Intermediate Queries
182
+
183
+
As of Studio Pro 10.20, it is possible to save queries at intermediate stages.
184
+
185
+
Studio Pro's standard save behavior is implemented, including the dot indicator in the tab to signify unsaved changes.
186
+
187
+
Press <kbd>Ctrl</kbd> + <kbd>S</kbd> to store changes when switching to a different query or performing another action. Make sure to not to use queries that are saved intermediately in the [Query External Database](/refguide/query-external-database/) activity of a microflow, as it might lead to runtime exception.
188
+
169
189
## Use Certificate-Based Authentication for PostgreSQL Connections {#postgres-ssl}
0 commit comments