Closed cope closed 7 years ago
Hello @cope,
I just published a fix to this issue, can you update your package to the latest version?
Regards!
I uninstalled and reinstalled, and the error is now different: Details: Error: ORA-00933: SQL command not properly ended
I found this on stackoverflow.
I will trz to figure out in the oracle-adapter code why it works...
Executing query: SELECT COUNT(*) as count FROM (SELECT * FROM "MY_TABLE" ) AS "MY_TABLE"
Error (E_UNKNOWN) :: Encountered an unexpected error
: ORA-00933: SQL command not properly ended
I think I found the place where to fix it, looking further.
Ah... I think you need to make a new npm release...
After uninstalling and reinstalling, my adapter.js still has the count method, even though here in the repository, the adapter.js file does not have it anymore.
Once I removed the count method from the adapter.js file, the count worked :)
So, I am 99% sure that all we need is a 0.3.2 release for npm :)
@cope, can you try to update again?
The latest version is 0.3.2, the package in the npmjs was outdated... my bad 😄
Running npm update :) One sec...
It works!!! :)
Hey @lucianmachado,
As I mentioned in issue #2 we recently switched from sails-oracle-db to sails-oracle-database, and that now casues the Model.count() method to fail :(
This in turn ruins our paging functionality, of course...
Do you maybe have an idea why the count fails? :(