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
with dot in bind #78
Comments
SELECT
a.name,
p.title,
p.id,
p.body,
p.author_id
FROM
`posts` AS `p`
LEFT JOIN `authors` AS `a` ON p.author_id = a.id
WHERE
`post`.`id` = :`post`.`id` |
|
this code: won't work either, I don't think. the : is only for named placeholders. |
|
So @pmjones , I wonder what will you do to make the where dynamic ? |
|
p.id AS my_dynamic_value |
|
Closing this in favour of our discussion. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Paul,
I was trying something lately. The where was having a
p.id = :p.id, but getting error likeI had a look into the problem and it is happening at
rebuildThe full stuff what I am experimenting is
I don't know whether I should call it as repository or something else.
Interested to hear your thoughts. This is slightly modified than the one in gist https://gist.github.com/harikt/26d244f87db8061eff97 .
Somethings in mind are may be use a
__callwhich can handle the select query instance , so can use the limit etc can be called or may be provide an abstract class.Looking forward to hear your thoughts.
The text was updated successfully, but these errors were encountered: