* BUG: Table.Indexes.Add() now does not corrupt index fields anymore.


git-svn-id: svn://localhost/gambas/trunk@3222 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2010-09-16 00:47:07 +00:00
parent 6cb1d823da
commit 0f5e37553a

View file

@ -234,10 +234,12 @@ BEGIN_METHOD(CINDEX_add, GB_STRING name; GB_OBJECT fields; GB_BOOLEAN unique)
q_add(table->driver->GetQuote());
}
info.fields = q_get();
info.fields = q_steal();
info.unique = VARGOPT(unique, FALSE);
table->driver->Index.Create(&table->conn->db, table->name, name, &info);
GB.FreeString(&info.fields);
END_METHOD