Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When you execute an SQL task that includes multiple SQL commands, the following error message (for example) may display:

<pre>
INSERT INTO uc_demo (name, value) values ('A', 'F');
INSERT INTO uc_demo (name, value) values ('B', 'S');
INSERT INTO uc_demo (name, value) values ('C', 'F');
</pre>
Panel
Html bobswift

Solution

Multiple queries, by default, are disabled for MySQL. To enable multiple queries, append the following string to the Connection URL field in the Database Connections resource definition:

<pre>
?allowMultiQueries=true
</pre>
Panel
Html bobswift

The following example is a URL connection string for a MySQL Database Connection resource definition:

<pre>
jdbc:mysql://localhost:3306/uc?allowMultiQueries=true
</pre>
Panel
Html bobswift