Closed matmair closed 1 year ago
Thanks for testing this!
pk
as the keyI had a look at this, and it has something to do with the fact that the PK is a numeric type. Either:
I'm just trying to figure out which one it is. Looking at the KiCad code and the nanodbc code I think perhaps all data should just be returned as strings, regardless of the underlying type (int, float, string, bool).
Ideally I'd be filtering out rows without a value for the column that is being used as the 'key'. This one is difficult, without some form of config.
I don't think I can tell up front whether IPN
or pk
is being used as the key, this only becomes apparent when selecting individual rows. Naively removing all rows without an IPN
would mean that using pk
as the key no longer works. Perhaps this just needs to be something that is configured in the connection string as well.
I don't get a consistent crash from KiCad when selecting those rows, but it is still not ideal that they are being shown.
Hit me up if you need any debug info - I have no idea what might be useful for go.
Thanks for offer. I was able to reproduce the issue with the missing PKs and eventually have managed to pinpoint what my ipmlemenmtation did wrong so that integers were not passed correctly to KiCad. I have a fix and will try to push that later tonight.
I made a new issue #5 to track the issue of rows without an IPN
When using
pk
as key the pk is not rendered:When using
IPN
as key the IPN is rendered as name. The part can be added in that case. Note: Only one part has an IPN setOnce I click on an item without a label KiCad goes away.
Version KiCad:
Version kom2: