BESSER icon indicating copy to clipboard operation
BESSER copied to clipboard

Attribute named "ID" causes error in SQL alchemy generator

Open Aran30 opened this issue 9 months ago • 1 comments

If a model contains a class with an attribute named "ID", this will generate sql alchemy code containing an error. The problem stems from the sql alchemy generator always adding a column named "id" as a primary key, thus leading to a table having two columns named ID. The sql alchemy generator needs to do an additional check for attributes called "id".

Aran30 avatar May 02 '24 09:05 Aran30