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

Connection::insert is escaping identifiers - inconsistency and compatibility break #64

Closed
mishak87 opened this issue Dec 27, 2013 · 6 comments
Labels

Comments

@mishak87
Copy link
Contributor

Code

Current state is that insert quotes and update and delete don't.

Either all functions should quote or it should be delegated to utility class DirectDataPersistor<insert,update,delete> (preferably with better name).

@fprochazka
Copy link
Member

All should quote :)

@stekycz
Copy link
Contributor

stekycz commented Apr 18, 2014

This should be fixed in Doctrine itself, isn't? Original implementation of insert also does not escape. And it also does something more then Kdyby implementation.

Why is method insert overriden anyway?

@fprochazka
Copy link
Member

Doctrine thinks this is a feature, I think we should override those methods and fix them.

@stekycz
Copy link
Contributor

stekycz commented Apr 18, 2014

I think overriding is temporary solution if it can be in Doctrine.

@fprochazka
Copy link
Member

Temporary solution is better than none. And I'm telling you, they won't make it easy for you to push this feature directly to doctrine. But hey, you can try and I will be glad if you succeed.

@stekycz
Copy link
Contributor

stekycz commented Apr 18, 2014

I may will try it because it looks for me easier then keep own updated methods in sync with Doctrine. However if they will be too hard against this feature I will accept it.

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

3 participants