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
Oracle Model ::find() not working #2658
Comments
I dug into the code to see if I could identify the problem. It appears, in PHALCON_SCONCAT_VSV(sql, columns_sql, " FROM ", tables_sql); The above line is completely missing from the Oracle equivalent. |
@nokios Here's the patch with your proposed changes (for patching the latest stable version 1.3.2):
That seems to have fixed the issue. |
Cool! Thanks! I was doing something like this and testing locally. there are other things wrong with the oracle client (such as the count() method... but this is the big one). |
Yep, there are other problems with the Oracle dialect in 1.3.x. I'm working on a fix to Model::findFirst-related SQL query. I expect to make pull request tomorrow. |
Thanks at this time I review |
I am using customer metaData since I am using views as my source, not tables. The SELECT query generated is incorrect. I am using 1.3.1 (haven't tested on 1.3.2 yet, or 1.2.6)
I also have a MySQL instance of this for testing, with the same views as tables, and this model works.
My class is below:
The text was updated successfully, but these errors were encountered: