Open GoogleCodeExporter opened 9 years ago
Hi Martin,
I hope I fixed this in
http://code.google.com/p/wwwsqldesigner/source/detail?r=00a847e101f4690fa8ae123d
9ed1f44546858e46.
Original comment by ondrej.zara
on 7 Mar 2014 at 7:39
Hi Ondra,
thank you for the fix, although warning about incompatible datatypes would be
still cool. ;)
Original comment by martin.meridius
on 7 Mar 2014 at 7:38
Can you please elaborate a bit? I am not sure what types are incompatible
and/or whether a FK value can be - in some circumstances - of a different type
than the PK.
Original comment by ondrej.zara
on 10 Mar 2014 at 12:01
That's the thing, AFAIK you can't set up foreign key between two keys of
different type. Not even two numeric types as Integer and Tinyint are
compatible. And without warning during exporting and/or saving, you'll notice
that after you ran that query through database.
Original comment by martin.meridius
on 10 Mar 2014 at 11:11
So to sum it up, simple checking if connected keys are of the same type upon
saving/exporting (generating SQL) would suffice. If they have different type,
the app would alert user. And this behavior could be optional.
Original comment by martin.meridius
on 10 Mar 2014 at 11:16
Sounds like a good idea to me.
Original comment by ondrej.zara
on 15 Mar 2014 at 9:17
Original comment by ondrej.zara
on 15 Mar 2014 at 9:18
Original issue reported on code.google.com by
martin.meridius
on 3 Mar 2014 at 7:39