Skip to content
Discussion options

You must be logged in to vote
    d: Annotated[decimal.Decimal | None, Field(max_digits=20, decimal_places=10, nullable=True)]

The above works (move | None inside Annotated)

CREATE TABLE testtableproblem (
        id INTEGER NOT NULL AUTO_INCREMENT, 
        c NUMERIC NOT NULL, 
        d NUMERIC(20, 10), 
        PRIMARY KEY (id)
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants