Code Monkey home page Code Monkey logo

Comments (6)

brendanheywood avatar brendanheywood commented on May 30, 2024

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.

mikhailjan avatar mikhailjan commented on May 30, 2024

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.

brendanheywood avatar brendanheywood commented on May 30, 2024

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.

mikhailjan avatar mikhailjan commented on May 30, 2024

I've changed the query and it seems to be working correctly. Here is the pull request #15.

from moodle-local_datacleaner.

roperto avatar roperto commented on May 30, 2024

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.

roperto avatar roperto commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.