-
Beta Was this translation helpful? Give feedback.
Answered by
MtXcOdEr
Dec 2, 2024
Replies: 1 comment
-
Im going to close this one, for anyone that have this problem again... if isinstance(table.c[colname.lower()].type, String): After that everything was generated successfully. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MtXcOdEr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.