Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise not implemented error for CHAR(36) column type #135

Open
BhuwanPandey opened this issue Oct 11, 2023 · 1 comment
Open

Raise not implemented error for CHAR(36) column type #135

BhuwanPandey opened this issue Oct 11, 2023 · 1 comment

Comments

@BhuwanPandey
Copy link

BhuwanPandey commented Oct 11, 2023

Hy there,

I had used [fastapi-users-db-sqlalchemy] package for user model setup.
Column type of id for user model is chat(36). For admin panel setup i have used this package but this raise not implementation error.

Error raise from crud/parsers.py file on lineno:355 ( type_ = expression.type.python_type )

if isinstance(expression.type, String):
      field_info_kwargs["max_length"] = expression.type.length
  if "default_factory" not in field_info_kwargs:
      field_info_kwargs["default"] = default
  
  type_ = expression.type.python_type
  
  if PYDANTIC_V2:
      field_info_kwargs["annotation"] = type_
  return create_response_field(

Tools that i used

SQLAlchemy 2.0.0
fastapi-users 10.4.1
fastapi-users-db-sqlalchemy 5.0.0
psycopg2 2.9.5
fastapi 0.103.2

@MatsiukMykola
Copy link
Contributor

sqlalchemy = "1.4.41"

work perfectly, maybe issue there, because sqlmodel not support sqlalchemy 2 at this moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants