eda/drivers/SQLite: Fix use case of Id type directly
authorJerome St-Louis <jerome@ecere.com>
Wed, 9 Dec 2015 23:22:03 +0000 (18:22 -0500)
committerJerome St-Louis <jerome@ecere.com>
Tue, 22 Dec 2015 06:45:09 +0000 (01:45 -0500)
eda/drivers/sqlite/EDASQLite.ec

index 68d3ab2..f8a0f71 100644 (file)
@@ -836,7 +836,7 @@ class SQLiteTable : Table
             result = sqlite3_create_collation_v2(db.db, type.fullName, SQLITE_UTF8, type, CollationCompare, null);
          }
       }
-      if(sqliteType != SQLITE_BLOB && eClass_IsDerived(type, class(eda::Id)))
+      if(sqliteType != SQLITE_BLOB && eClass_IsDerived(type, class(eda::Id)) && type != class(eda::Id))
       {
          Table * table = (Table *)(intptr)eClass_GetProperty(type, "table");
          if(table) refTable = *table;