Skip to content

Error: "Something wrong with index on table" #92

Closed

Description

@mathiasrw

The following statement

CREATE TABLE tab0(pk INTEGER NOT NULL PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT);
INSERT INTO tab0 VALUES(0,6,4.67,'wdbsg',4,2.89,'altmp');
CREATE TABLE tab1(pk INTEGER NOT NULL PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT);
CREATE INDEX idx_tab1_4 on tab1 (col4);
INSERT INTO tab1 SELECT * FROM tab0;
DELETE FROM tab1 WHERE col4 > 2.27;

gives me the result

Error: Something wrong with index on table

I expected to be able to delete from tab1 without problems.

Activity

  1. self-assigned this
    on Apr 4, 2015
  2. agershun commented on Apr 13, 2015

    @agershun
    Member

    Fixed. Now in develop branch.

    Please, check in jsFiddle

  3. mathiasrw commented on Apr 14, 2015

    @mathiasrw
    MemberAuthor

    You are a machine...

    Input: when making jsfiddls in the future to test something put a few words about what we hope to get (empty result, no error) - makes it much easier too look at 1 month from now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions