wcdb icon indicating copy to clipboard operation
wcdb copied to clipboard

VirtualTable set primary key invalid 虚拟表设置主键

Open AllenYL opened this issue 2 years ago • 0 comments

The language of WCDB

e.g. Objective-C, Swift or Java swift

The version of WCDB

e.g. v1.0.8.2

The platform of WCDB

e.g. iOS

The installation of WCDB

e.g. Cocoapods

What's the issue?

Post the outputs or screenshots for errors.

Explain what you want by example or code in English.

The virtual table (XXXXTableName) data model I created tried to set "mid" as the primary key constraint, but it was invalid,I want to use "mid" as the primary key so that the inserted data does not duplicate, how do I set it?

I see that the table inside DB(XXXXTableName_content) actually uses the private property "docid" as the primary key.

截屏2022-08-03 17 21 17

截屏2022-08-03 17 13 48 截屏2022-08-03 17 13 27

AllenYL avatar Aug 03 '22 09:08 AllenYL