-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Dialect::select produces sql with missing columns #1905
Comments
Same here. $builder = \Phalcon\DI::getDefault()->getShared('modelsManager')->createBuilder()
->from('Model\Entity\AclRole')
->orderBy('name ASC, is_default DESC, application_type ASC');
$parsed = $builder->getQuery()->parse();
$sql = \Phalcon\DI::getDefault()->getShared('db')->getDialect()->select($parsed);
echo $sql . "\n"; Outputs:
|
ghost
mentioned this issue
Jan 27, 2014
Merged
Fix submitted but I am not sure this is the proper way to use the parsed PHQL. |
phalcon
pushed a commit
that referenced
this issue
Jan 29, 2014
@ianbytchek Could you please test now and close the issue if everything works for you? |
Looks good to me. Thanks. |
Will that fix be included in 1.2.7 ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same result when changing columns to anything else. However, if I do
There seem to be some modifications to the intermediary value retrieved from $query->parse() in query.c on line 3953:
I guess that makes the difference?
The text was updated successfully, but these errors were encountered: