Working on B+ tree implementation.

This commit is contained in:
2018-06-21 08:04:33 +01:00
parent 1c74b586fd
commit 777697d9ab
4 changed files with 320 additions and 3 deletions

View File

@@ -428,7 +428,7 @@ void print_column_spec_list(ColumnSpecList *list) {
for (size_t i = 0; i < list->length; i++) {
ColumnSpec *spec = list->columns[i];
if (spec->type == COLTYPE_STRING) {
printf("%s STRING(%d)", spec->identifier, spec->size);
printf("%s STRING(%ld)", spec->identifier, spec->size);
} else if (spec->type == COLTYPE_INT) {
printf("%s INTEGER", spec->identifier);
}
@@ -470,6 +470,6 @@ void print_value(Value *value) {
}
printf("'");
} else if (value->type == VALUE_NUMBER) {
printf("%lld", value->number);
printf("%ld", value->number);
}
}