Comments (6)
Can you give a complete reproducible set of steps to get this? It looks to me like you started running it, it created the template table, then perhaps killed it and re-ran it? The temp tables should be deleted and the db driver checks that none are still around.
from moodle-local_datacleaner.
This happened the first time I ran it. And there is no table called mdl_temp_table in the database afterwards. The same thing happens if I run it again.
Could it be that the SQL being generated is wrong?
Default exception handler: Error writing to database Debug: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM mdl_temp_table WHERE (1 + (u.id % 83)) = mdl_temp_table.id
AND ' at line 1
from moodle-local_datacleaner.
Possibly, it may actually be postgres specific sql which is barfing on mysql. If you are able to wrangle a patch together that would be great, or even if you can just amend it to work with mysql and I'll fold that in so it works side by side with postgres.
from moodle-local_datacleaner.
I've changed the query and it seems to be working correctly. Here is the pull request #15.
from moodle-local_datacleaner.
Hi Mikhail,
I just merged it into development branch and I should merge it to master soon.
Thank you for the patch,
Daniel
from moodle-local_datacleaner.
I am closing this issue we believe it has been solved. Feel free to reopen if something comes up.
from moodle-local_datacleaner.
Related Issues (20)
- Match environments for matrix cleaner irrespective of protocol HOT 1
- When cleaning users and mixing up their names, exclude any names of admin users who are not cleaned
- Fix sql like escaping issue
- Declaration of unit tests setUp() must be compatible with new PHPUnit for moodle 3.10+ HOT 1
- Fix failing PHP docs check
- Fix failing PHP code checker
- Fix assertRegExp() is deprecated and will be removed in PHPUnit 10 HOT 1
- Master branch has a higher version than MOODLE_310_STABLE HOT 1
- Option to select all / deselect all tasks on scheduled tasks
- Totara 16 - assertFileNotExists() is deprecated and will be removed in PHPUnit 10
- Moodle 4.1 testing -> Some issues found
- Foreign key constraint preventing TRUNCATE mdl_grade_grades
- Scramble user data not working as expected
- print_error is deprecated
- Commented out SQL in cleaner_custom_sql_post may run anyway? (but fails when arguments required) HOT 1
- unit test failure test_it_outputs_header_and_footer post tracker MDL-79276
- Remove the MUC cleaner HOT 1
- Failing core unit tests duo to incorrect default value
- Cleanup table cleaner_muc_configs
- Moodle 4.3: get_all_user_name_fields() is deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-local_datacleaner.