TMyScript and quotes around Parameters
Posted: Wed 01 Aug 2012 02:16
I have the following lines in my (very long) script file:
TMyScript translates the &destschema to "myschemaname" with double quotes. The trouble is that I think it should use a special single quote like so: `myschemaname`.
If I manually execute the script with (`) quotes using the MySQL query browser, it works. If I use double quotes (") in a manual query it fails with a syntax error.
The TMyScript is failing with syntax errors, so I think the problem is the quotes. Any ideas?
Best regards,
Kevin G. McCoy
Code: Select all
CREATE SCHEMA IF NOT EXISTS &destschema;
USE &destschema;
If I manually execute the script with (`) quotes using the MySQL query browser, it works. If I use double quotes (") in a manual query it fails with a syntax error.
The TMyScript is failing with syntax errors, so I think the problem is the quotes. Any ideas?
Best regards,
Kevin G. McCoy