Output:"select * from dual"
'"select * from dual"'
This output clearly shows that you have double quotes around your SQL statement in the file.Note that single quotes around the second print output is due to the fact that you print repr() of the string, not they are actually there, so it's not possible to remove them (line #16)
I told you file should look like this
Output:SELECT * FROM dual;
just in case - don't put new line (i.e. don't hit ENTER) at the end of the line, even if it doesn't matter in SQLhere is Gist
https://gist.github.com/boyank/3b8f8a4c6...d2de45fdcc