相关文章推荐
彷徨的匕首  ·  Use data operations ...·  4 月前    · 
挂过科的葡萄  ·  使用MERGE ...·  1 月前    · 
沉稳的绿豆  ·  macos - error "sh: ...·  3 年前    · 
高兴的黄豆  ·  CSharpCodeProvider ...·  3 年前    · 
完美的鸵鸟  ·  Scala ...·  3 年前    · 

Tables without rowid causes "no such column"-logs #945

@simme

Description

What did you do?

Created a table without rowid.

db.create(table: "product_categories", withoutRowID: true)

What did you expect to happen?

Nothing special really.

What happened instead?

Everytime I access the database through my FetchableRecord s I get these log entries.
no such column: rowid in "SELECT rowid FROM "list_items""

The reason my tabels are without rowid is because I use UUIDs to identify everything. Perhaps this is the wrong approach?

Environment

GRDB flavor(s): GRDB
GRDB version: 5.6.0
Installation method: SPM
Xcode version: 12.3
Swift version: 5.3
Platform(s) running GRDB: iOS
macOS version running Xcode: 11.2.3

Demo Project

If necessary for further debugging I can certainly provide this! :)