Casue SQLite-Fehler: 'Error #3132: Data type mismatch." in Adobe AIR

"SELECT * FROM locations 
 JOIN section_has_location ON locations.location_id = section_has_location.location_id 
 WHERE section_has_location.chapter_id =2 
   AND section_has_location.section_id=2"

Bekomme ich die Fehlermeldung:

SQLError: Fehler #3132: Data type mismatch.', details:'konnte nicht konvertiert text Wert numerischer Wert.', Bedienung:'ausführen', detailID:'2300'

Diese sind die Tabellen:

CREATE TABLE locations ( 
    location_id INTEGER,
    name        TEXT,
    mask_id     TEXT,
    x           REAL,
    y           REAL,
    content     TEXT,
    image_url   TEXT,
    type        TEXT 
);

CREATE TABLE section_has_location ( 
    chapter_id  INTEGER,
    section_id  INTEGER,
    location_id INTEGER 
);

Wie behebe ich die Abfrage als zu nicht den Fehler verursachen?

update: ich exportiert alle Daten und Import in eine neue, saubere Datenbank. Dies scheint sich gelöst zu haben, dass sich Fehler.

InformationsquelleAutor davivid | 2011-10-20

Schreibe einen Kommentar