Re: [sqlite] Generated columns in primary keys, indexes, and constraints

2019-10-31 Thread Dominique Devienne
On Wed, Oct 30, 2019 at 11:12 AM Richard Hipp wrote: > [...] But using a VIRTUAL generated column as a PRIMARY KEY would be an > issue. > FWIW, I depend on this feature in Oracle, and it works. Both my PRIMARY and FOREIGN keys are VIRTUAL columns, which combine two stored columns. Oracle even al

Re: [sqlite] Generated columns in primary keys, indexes, and constraints

2019-10-30 Thread Darren Duncan
On 2019-10-30 12:52 p.m., Keith Medcalf wrote: On Wednesday, 30 October, 2019 13:23, Darren Duncan wrote: On 2019-10-30 12:02 p.m., Simon Slavin wrote: On 30 Oct 2019, at 6:56pm, Darren Duncan wrote: "Generated columns may not be used as part of the PRIMARY KEY. (Future versions of SQLi

Re: [sqlite] Generated columns in primary keys, indexes, and constraints

2019-10-30 Thread Keith Medcalf
On Wednesday, 30 October, 2019 13:23, Darren Duncan wrote: >On 2019-10-30 12:02 p.m., Simon Slavin wrote: >> On 30 Oct 2019, at 6:56pm, Darren Duncan wrote: >>> "Generated columns may not be used as part of the PRIMARY KEY. (Future >>> versions of SQLite might relax this constraint for STORED

Re: [sqlite] Generated columns in primary keys, indexes, and constraints

2019-10-30 Thread Darren Duncan
On 2019-10-30 12:02 p.m., Simon Slavin wrote: On 30 Oct 2019, at 6:56pm, Darren Duncan wrote: "Generated columns may not be used as part of the PRIMARY KEY. (Future versions of SQLite might relax this constraint for STORED columns.)" Replace with this: "VIRTUAL generated columns may not be

Re: [sqlite] Generated columns in primary keys, indexes, and constraints

2019-10-30 Thread Simon Slavin
On 30 Oct 2019, at 6:56pm, Darren Duncan wrote: > "Generated columns may not be used as part of the PRIMARY KEY. (Future > versions of SQLite might relax this constraint for STORED columns.)" > > Replace with this: > > "VIRTUAL generated columns may not be used as part of the PRIMARY KEY." Wh

Re: [sqlite] Generated columns in primary keys, indexes, and constraints

2019-10-30 Thread Darren Duncan
On 2019-10-30 3:12 a.m., Richard Hipp wrote: On 10/30/19, Darren Duncan wrote: Ideally a PRIMARY KEY would have no restrictions that a UNIQUE constraint lacks; they are conceptually the same thing, a subset of the columns of the row that uniquely identifies the row in the table, and designatin

Re: [sqlite] Generated columns in primary keys, indexes, and constraints

2019-10-30 Thread Richard Hipp
On 10/30/19, Darren Duncan wrote: > > Ideally a PRIMARY KEY would have no restrictions that a UNIQUE constraint > lacks; > they are conceptually the same thing, a subset of the columns of the row > that > uniquely identifies the row in the table, and designating one as PRIMARY is > completely arbi