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

mysql functions on where method #189

Open
ogunbaysal opened this issue May 30, 2020 · 3 comments
Open

mysql functions on where method #189

ogunbaysal opened this issue May 30, 2020 · 3 comments
Labels

Comments

@ogunbaysal
Copy link

@ogunbaysal ogunbaysal commented May 30, 2020

Is that possible to use mysql functions such as date_add with between function ?

@techno-express
Copy link
Contributor

@techno-express techno-express commented May 30, 2020

I don't see why that shouldn't work.

Have you tried, and what was the error/result?
Do you have some code snippet to check/test with?

@ogunbaysal
Copy link
Author

@ogunbaysal ogunbaysal commented May 31, 2020

No error but result is with quotes. When it generates the between sql query you add single quote both before and after of values. Because of that mysql see them as string and doesnt work mysql functions.

File: ezQuery.php
Line: 369

@techno-express
Copy link
Contributor

@techno-express techno-express commented May 31, 2020

Does it produce same result with ->prepareOn();?

Will need an example you have to be able to develop a method or adjust current ones to detect if SQL function is beginning used. This should be the full SQL statement and expected results from it.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.