mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-25 10:24:32 +02:00
.transform() on rowid (non-pk) tables bug fix, closes #284
This commit is contained in:
parent
5b257949d9
commit
0e797033f9
5 changed files with 100 additions and 16 deletions
|
|
@ -1016,7 +1016,9 @@ class Table(Queryable):
|
|||
|
||||
sqls = []
|
||||
if pk is DEFAULT:
|
||||
pks_renamed = tuple(rename.get(p) or p for p in self.pks)
|
||||
pks_renamed = tuple(
|
||||
rename.get(p.name) or p.name for p in self.columns if p.is_pk
|
||||
)
|
||||
if len(pks_renamed) == 1:
|
||||
pk = pks_renamed[0]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue