Skip to content
Discussion options

You must be logged in to vote

Im going to close this one, for anyone that have this problem again...
On the generators.py of the SqlCodeAgen_V2 library, line 585 and 586, please add a .lower() to the colname in order to be found.
That is the error only:

if isinstance(table.c[colname.lower()].type, String):
table.constraints.remove(constraint)
if not isinstance(table.c[colname.lower()].type, Enum):

After that everything was generated successfully.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MtXcOdEr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant