QL for QL: make node column unique

This commit is contained in:
Nick Rolfe
2022-02-08 09:59:11 +00:00
parent 8881031d0a
commit fa16ff9ffc
2 changed files with 2 additions and 2 deletions

View File

@@ -259,7 +259,7 @@ fn create_ast_node_info_table<'a>(
dbscheme::Column {
db_type: dbscheme::DbColumnType::Int,
name: "node",
unique: false,
unique: true,
ql_type: ql::Type::At(ast_node_name),
ql_type_is_ref: true,
},

View File

@@ -1063,7 +1063,7 @@ case @ql_token.kind of
#keyset[parent, parent_index]
ql_ast_node_info(
int node: @ql_ast_node ref,
unique int node: @ql_ast_node ref,
int parent: @ql_ast_node_parent ref,
int parent_index: int ref,
int loc: @location ref