From bbddbdee05e9f75980fadafec900d039fe9fdb48 Mon Sep 17 00:00:00 2001 From: nvt Date: Tue, 6 Dec 2011 19:10:22 +0100 Subject: [PATCH] New attribute must be put into storage. --- apps/antelope/antelope.c | 2 +- apps/antelope/aql-exec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/antelope/antelope.c b/apps/antelope/antelope.c index 2bead1a7a..6a1860ccb 100644 --- a/apps/antelope/antelope.c +++ b/apps/antelope/antelope.c @@ -72,7 +72,7 @@ db_get_result_message(db_result_t code) case DB_NAME_ERROR: return "Invalid name"; case DB_RELATIONAL_ERROR: - return "Relational algebra error"; + return "Semantic error"; case DB_TYPE_ERROR: return "Type error"; case DB_IMPLEMENTATION_ERROR: diff --git a/apps/antelope/aql-exec.c b/apps/antelope/aql-exec.c index ad1275197..b838a720f 100644 --- a/apps/antelope/aql-exec.c +++ b/apps/antelope/aql-exec.c @@ -98,7 +98,7 @@ aql_execute(db_handle_t *handle, aql_adt_t *adt) switch(optype) { case AQL_TYPE_CREATE_ATTRIBUTE: 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) { result = DB_OK; }