[GB.DB]
* 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:
parent
6cb1d823da
commit
0f5e37553a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue