There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
SchemaCompare: changing PK is written wrong
I have a DB table, with a PK "kep" (integer).
I have a table in memory, same name, also with integer column "kep", but with another column "kep2" which shall be the primary key (instead of "kep").
Comparing the schemata writes a wrong ALTER TABLE statement, not considering the "kep2" but "kep".
I attached screenshots from the debugging statement. The wrong result is 4.png.
The problem I think occures in WrieConstraint(), which is not considering the constraint itself as it calls WritePrimaryKey() without parameters, see 3.png