Code Monkey home page Code Monkey logo

Comments (7)

pudo avatar pudo commented on July 22, 2024

Hmmm I'm not sure what's happening there. Can you share the list of table names in the given database? One of them might contain only special characters and get normalized to None...

from dataset.

pudo avatar pudo commented on July 22, 2024

Wrong button, good morning :)

from dataset.

ddofborg avatar ddofborg commented on July 22, 2024

It's a clean install of MySQL v8 on Ubuntu, only default databases and tables. I do see a utf8mb4 encoding of the tables. Could that be it?

Screenshot 2021-12-23 at 10 51 05

PS. Maybe it's good to update the docs and remove MySQLDB from there.

from dataset.

ddofborg avatar ddofborg commented on July 22, 2024

If it helps, I can add the print somewhere to see the value before normalisation. Just let me know where normalisation happens, and I will print before that.

from dataset.

pudo avatar pudo commented on July 22, 2024

The only thing we're passing in there is schema, which is None as a default. This should be possible:

https://docs.sqlalchemy.org/en/14/core/reflection.html#sqlalchemy.engine.reflection.Inspector.get_table_names

Can you try and remove the self.schema from /home/dataset/venv/lib/python3.8/site-packages/dataset/database.py:184?

from dataset.

ddofborg avatar ddofborg commented on July 22, 2024

You mean from:

    @property
    def tables(self):
        """Get a listing of all tables that exist in the database."""
        return self.inspect.get_table_names(schema=self.schema)

to:

    @property
    def tables(self):
        """Get a listing of all tables that exist in the database."""
        return self.inspect.get_table_names()

Same thing...

from dataset.

pudo avatar pudo commented on July 22, 2024

Hmmm I really don't understand how this is caused by dataset. Have you checked the upstream bug tracker at sqlalchemy to see if the issue is documented there? I don't have MySQL set up to test so it's a bit hard to debug/replicate.

from dataset.

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.