On Mon, 26 Aug 2019 at 11:03, Mohtashim S <mohtash...@gmail.com> wrote:
>
> I have a multiline variable "filedet" that contains string text having 
> multiple single quotes.
>
> I wish to replace the single quote to double quotes so that It can be 
> acceptable for SQL query and below is what I tried.
>
>     filedet: "{{ ( filedet ) | replace('/'','/'/'') }}"
>     filedet: "{{ ( filedet ) | replace(''%c '%58'',''%c '%58''%c '%58'') }}"
>
> It does not help. Can you please suggest ?

Is your string intended to be used as a value inside an SQL query?
Or is your string going to be the entire query?
And which SQL dialect are we talking about?

-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwP6taef_RWOAi8QMZTMUfm_E9juG0%2BKuBk4L5A6H1cw1w%40mail.gmail.com.

Reply via email to