Giter VIP home page Giter VIP logo

Comments (5)

agronholm avatar agronholm commented on August 16, 2024

Original comment by Francisco Puga (Bitbucket: fpuga, GitHub: fpuga):


I think that this is duplicated to #18

from sqlacodegen.

rajesh-kanakabandi avatar rajesh-kanakabandi commented on August 16, 2024

any update on this issue?

from sqlacodegen.

agronholm avatar agronholm commented on August 16, 2024

I haven't worked on this library for a good while now. I made the mistake of starting the 2.0 refactoring before I had committed enough time to do it. I plan to make a number of improvements in the next couple weeks and make a new release too.

from sqlacodegen.

JonnoFTW avatar JonnoFTW commented on August 16, 2024

This fix doesn't work for me, I'm using a POLYGON and POINT type in mysql, and I get this error running latest sqlacodegen and geoalchemy:

venv/lib/python3.7/site-packages/sqlalchemy/dialects/mysql/reflection.py:181: SAWarning: Did not recognize type 'polygon' of column 'area'
  (type_, name))
venv/lib/python3.7/site-packages/sqlalchemy/dialects/mysql/reflection.py:181: SAWarning: Did not recognize type 'point' of column 'location'
  (type_, name))

I assume at this point it gives those fields null type and I get this error later in the code generation:

venv/lib/python3.7/site-packages/sqlalchemy/sql/compiler.py", line 2973, in visit_null
    "type on this Column?" % type_)
sqlalchemy.exc.CompileError: Can't generate DDL for NullType(); did you forget to specify a type on this Column?

from sqlacodegen.

agronholm avatar agronholm commented on August 16, 2024

What the commit fixed was PostGIS support. It doesn't do anything about the corresponding types on MySQL. If you can point out what needs to be imported first, then please create a new issue for that.

from sqlacodegen.

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.