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

Double quotes #2459

Closed
MashinaMashina opened this issue Dec 20, 2019 · 2 comments
Closed

Double quotes #2459

MashinaMashina opened this issue Dec 20, 2019 · 2 comments

Comments

@MashinaMashina
Copy link
Contributor

What is it?

protected function _escapeString(string $str): string
{
return str_replace("'", "''", remove_invisible_characters($str, false));
}

I'am writing driver for ClickHouse, and I getted error because CI puts double quotes in query. Is it such an abstract function?

My result query from db driver: SELECT * FROM table WHERE key=''value''
('' it isnt ")

@lonnieezell
Copy link
Member

The methods in the database drivers that start with an underscore are intended to be overridden by your own drivers if needed. You should override that method in your driver to properly escape a string.

@lonnieezell
Copy link
Member

Oh - and in the future, please ask support questions on the forums. Only report bugs here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants