Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default escape character? #124

Closed
wapacro opened this issue Jan 12, 2017 · 1 comment
Closed

Change default escape character? #124

wapacro opened this issue Jan 12, 2017 · 1 comment
Assignees
Labels

Comments

@wapacro
Copy link

wapacro commented Jan 12, 2017

Hi

I'd like to know if it's possible to change the default escape character when building a query.
I'm currently working on a php application that allows copying data sets from a Teradata system to the local MySQL environment and the other way around.
I use this lib to build the CREATE TABLE statements among others.
The problem is that Teradata does not support backticks as escape character. Is there any way to change the used character to double quote for example?

Thanks

@wapacro
Copy link
Author

wapacro commented Jan 12, 2017

Found an already implemented solution: call
Context::setMode('ANSI_QUOTES'); before using the parser/builder library.

@wapacro wapacro closed this as completed Jan 12, 2017
@nijel nijel self-assigned this Jan 17, 2017
@nijel nijel added the question label Jan 17, 2017
nijel added a commit that referenced this issue Jan 17, 2017
Fixes #124

Signed-off-by: Michal Čihař <michal@cihar.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants