You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I open Create index dialog and try to create Unique index using expression I get notification that "Unique index cannot have indexed expression...", see picture below:
I searched through official SQLite3 documentation, but could not find this information that it's not allowed.
In Create Indexdocumenation page, there is a note on indexes with expressions:
Expressions in an index may not reference other tables and may not use subqueries nor functions whose result might change (ex: random() or sqlite_version()). Expressions in an index may only refer to columns in the table that is being indexed. Indexes on expression will not work with versions of SQLite prior to version 3.9.0 (2015-10-14). See the Indexes On Expressions document for additional information about using general expressions in CREATE INDEX statements.
As noted above, only specific expressions are not allowed, not all expressions.
Under Indexes On Expressions documentation there is a sentence which refers to UNIQUE constraint within CREATE TABLE statement, not within CREATE INDEX:
Expressions may only be used in CREATE INDEX statements, not within UNIQUE or PRIMARY KEY constraints within the CREATE TABLE statement.
Am I missing something?
Operating system
Win 10
SQLiteStudio version
3.4.4
The text was updated successfully, but these errors were encountered:
I'm not entirely sure why this was implemented, but it is likely, that the last mentioned precondition was misinterpreted by me at the time of implementation.
Details
Hi,
when I open
Create index
dialog and try to create Unique index using expression I get notification that "Unique index cannot have indexed expression...", see picture below:I searched through official SQLite3 documentation, but could not find this information that it's not allowed.
In
Create Index
documenation page, there is a note on indexes with expressions:As noted above, only specific expressions are not allowed, not all expressions.
Under Indexes On Expressions documentation there is a sentence which refers to UNIQUE constraint within
CREATE TABLE
statement, not withinCREATE INDEX
:Am I missing something?
Operating system
Win 10
SQLiteStudio version
3.4.4
The text was updated successfully, but these errors were encountered: