Skip to content

Commit 517742d

Browse files
authored
Merge pull request mendix#9073 from SurabhiSaraf/10.20updateEDB
Added changes for 10.20
2 parents 9e75759 + 7394e08 commit 517742d

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

content/en/docs/appstore/use-content/platform-supported-content/modules/database-connector-mx10.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ This connector supports the following statements:
5555

5656
### Limitations
5757

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)
5959
* 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)
6161
* Parameters are only supported for filter values (prepared statements)
6262
* Certificate-based authentication for PostgreSQL is not supported on macOS
6363

@@ -123,6 +123,18 @@ Then, use the parameter in the query:
123123

124124
`select * from customers where contactFirstName like {paramFirstName}`
125125

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+
126138
### Using Query Response {#use-query-response}
127139

128140
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
166178
See the [Integration Activities](/refguide/integration-activities/) section of the *Studio Pro Guide* for further explanation of the properties in this activity.
167179
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.
168180

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+
169189
## Use Certificate-Based Authentication for PostgreSQL Connections {#postgres-ssl}
170190

171191
### Prerequisites

0 commit comments

Comments
 (0)