I use the database table source with custom SQL to bring data into Omnicope, but unlike a normal development environment, I can't execute commands, such as calls to refresh views. So running code like this fails: CALL refresh_active_sites(@rc); SELECT * FROM active_sites;
Is this prevented for security reasons, or should I be using a different approach? Similarly, if I could do this, I could pass instructions to not lock tables along, because at the moment I cannot do this.
At the moment the Database source only supports you entering a single query.
We could build in the ability to execute commands, separated by a ";". We would then have to assume that there was exactly one "SELECT" command, which was the query, and all other commands should be executed in the order specified.
I've re-classified this as an idea, please vote and let us know if you have any further ideas for enhancing this functionality.
Using MySQL. The code you wrote also gives a database error: Database error An error occurred connecting to or querying the database. Can not issue data manipulation statements with executeQuery().