-
Notifications
You must be signed in to change notification settings - Fork 1
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
Query not preparing correctly #9
Comments
@alex-ondrus Just updated the code for mdl_courses, and tested on mySQL and seemed to work fine. When you have a moment, can you test with postgres as well? I'll continue refactoring the other queries today, but don't foresee any problems --not that anyone ever does :) When testing make sure to install the branch "issue_9". |
@dietrichson I'm having difficulties with
If I paste my username, password, dbname, etc. into the following, however,
everything seems to connect fine. When I run the following
I receive the following error
If I run the following, however
Things seem to work. |
@alex-ondrus I made some updates this morning (see commits). Please let me know if this works for you. |
@dietrichson The connection issue persists. It looks as thought the following lines are running even when the driver is set to
which may be causing the error. I have defined
When I do this, the command
executes without error and returns an object of class
also runs without errors but outputs a tibble directly. |
@alex-ondrus yes. It looks like there was an else clause missing. |
Success! Connection issue is resolved. Is there a reason that |
@alex-ondrus yes, the reason that mdl_grades and mdl_forum_posts execute a query in the background, you can see these in "mdl_grades_query" etc, which were written in sql and not refactored to dplyr syntax. If you use the caching mechanism this doesn't matter, since these queries run and store the results in the cache, but for the direct connection I wasn't able to refactor the queries (take a look!) to dplyr syntax within a reasonable timeframe. |
When I run
I receive the error
My Moodle database runs off of Postgres, and when I run the command
I get the same error
The text was updated successfully, but these errors were encountered: