You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "DrLuRen (via GitHub)" <gi...@apache.org> on 2024/12/10 08:46:00 UTC
[I] how to use JDBC request when parameters have " [jmeter]
DrLuRen opened a new issue, #6387:
URL: https://github.com/apache/jmeter/issues/6387
### The documentation URL
https://jmeter.apache.org/usermanual/component_reference.html#JDBC_Request
### Feedback
I try to make a JDBC request
`update user set nickname = ? where id = ?`
Parameters is
`${nickName},${id}`
Beanshell is
`String nickname = vars.get("nickname");
log.info("before ===>" + nickname);
nickname = nickname.replaceall("\"","\"\"\"");
log.info("after ===> "+ nickname);
vars.put("nickname",nickname);
`
but I get a error
> before ===> nick"name
> after ===> nick\"\"\"name
> cannot have quote-char in plain filed:[nick\"]
i also use
but it doesn't work too.
the document say
The list must be enclosed in double-quotes if any of the values contain a comma or double-quote, and any embedded double-quotes must be doubled-up, for example:
`"Dbl-Quote: "" and Comma: ,"`
how to make it work?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org