JDBC Request errors when semicolon is included in SQL
When you end your sql statement with a semicolon in JDBC Requests, soapUI fails to run the request and reports the following error:
"Error getting response; java.sql.SQLSyntaxErrorException: ORA-00911: invalid character"
I'd like to run several sql statements in one jdb step and this is making me create a lot of jdbc steps.
I see it has already been reported but archived: https://community.smartbear.com/t5/API-Functional-Security-Testing/JDBC-Request-errors-when-semicolon-is-included-in-SQL/td-p/14870
Do you know of a workaround?
Strangely enough I found that I get the error if I send a call like this:
GRANT SELECT ON TABLENAME TO USER;
But it works with the following statement:
CREATE OR REPLACE FUNCTION USER.NUMBER ( input VARCHAR2 ) RETURN VARCHAR2 IS
begin
if input is null then return null;
Hi,
In terms of a workaround, you could look at a Groovy script step. At least then you could script call the db several times and interact with the results in between each.
The downside to the scripting is having to manage creating, opening and closing the connection by using Groovy script, but that isn't too bad to do.