New attribute must be put into storage.
This commit is contained in:
parent
e291eb43f4
commit
bbddbdee05
|
@ -72,7 +72,7 @@ db_get_result_message(db_result_t code)
|
||||||
case DB_NAME_ERROR:
|
case DB_NAME_ERROR:
|
||||||
return "Invalid name";
|
return "Invalid name";
|
||||||
case DB_RELATIONAL_ERROR:
|
case DB_RELATIONAL_ERROR:
|
||||||
return "Relational algebra error";
|
return "Semantic error";
|
||||||
case DB_TYPE_ERROR:
|
case DB_TYPE_ERROR:
|
||||||
return "Type error";
|
return "Type error";
|
||||||
case DB_IMPLEMENTATION_ERROR:
|
case DB_IMPLEMENTATION_ERROR:
|
||||||
|
|
|
@ -98,7 +98,7 @@ aql_execute(db_handle_t *handle, aql_adt_t *adt)
|
||||||
switch(optype) {
|
switch(optype) {
|
||||||
case AQL_TYPE_CREATE_ATTRIBUTE:
|
case AQL_TYPE_CREATE_ATTRIBUTE:
|
||||||
attr = &adt->attributes[0];
|
attr = &adt->attributes[0];
|
||||||
if(relation_attribute_add(rel, DB_MEMORY, attr->name, attr->domain,
|
if(relation_attribute_add(rel, DB_STORAGE, attr->name, attr->domain,
|
||||||
attr->element_size) != NULL) {
|
attr->element_size) != NULL) {
|
||||||
result = DB_OK;
|
result = DB_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue