Giter Site home page Giter Site logo

Problem with registering about myjudo HOT 7 CLOSED

lancew avatar lancew commented on July 20, 2024
Problem with registering

from myjudo.

Comments (7)

lancew avatar lancew commented on July 20, 2024

Interesting....

So I am running locally:

$ perl6 -v
This is Rakudo version 2017.11 built on MoarVM version 2017.11
implementing Perl 6.c.

Bailador:
Bailador:ver<0.0.14>

Not yet able to replicate a failure such as you have found.

from myjudo.

JJ avatar JJ commented on July 20, 2024

Could it be an error in DBDish;:SQLite itself of which you might have a different version?

from myjudo.

JJ avatar JJ commented on July 20, 2024

Hum, no. The error seems to be in this statement:

        $sth = $.dbh.prepare(q:to/STATEMENT/);
            WITH CTE AS
            (
            SELECT parent_sensei_id
                FROM sensei_sensei
                WHERE child_Sensei_id=?
            UNION ALL
            SELECT sensei_sensei.parent_sensei_id
                FROM CTE
                JOIN sensei_sensei
                ON CTE.parent_sensei_id=sensei_sensei.child_sensei_id
            )
            SELECT distinct * FROM CTE;
        STATEMENT

from myjudo.

JJ avatar JJ commented on July 20, 2024

I would say it's a problem with the SQLite version number

from myjudo.

JJ avatar JJ commented on July 20, 2024

It's an sqlite error:

sqlite>            WITH CTE AS
   ...>             (
   ...>             SELECT parent_sensei_id
   ...>                 FROM sensei_sensei
   ...>                 WHERE child_Sensei_id=?
   ...>             UNION ALL
   ...>             SELECT sensei_sensei.parent_sensei_id
   ...>                 FROM CTE
   ...>                 JOIN sensei_sensei
   ...>                 ON CTE.parent_sensei_id=sensei_sensei.child_sensei_id
   ...>             )
   ...>             SELECT distinct * FROM CTE;
Error: near "WITH": syntax error

And right on: https://stackoverflow.com/questions/27048349/sqlite-with-syntax-error
...

$ sqlite3 --version
3.8.2 2013-12-06 14:53:30 27392118af4c38c5203a04b8013e1afdb1cebd0d

from myjudo.

lancew avatar lancew commented on July 20, 2024

I may also remove that insane query that I was using to get teh family tree of instructors (sensei). There are other approaches. :-)

from myjudo.

JJ avatar JJ commented on July 20, 2024

from myjudo.

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.