Skip to content

Commit 2037368

Browse files
committed
Ruby: make node column unique
1 parent dbe2951 commit 2037368

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ruby/generator/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ fn create_ast_node_info_table<'a>(
260260
dbscheme::Column {
261261
db_type: dbscheme::DbColumnType::Int,
262262
name: "node",
263-
unique: false,
263+
unique: true,
264264
ql_type: ql::Type::At(ast_node_name),
265265
ql_type_is_ref: true,
266266
},

ruby/ql/lib/ruby.dbscheme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ case @ruby_token.kind of
13261326

13271327
#keyset[parent, parent_index]
13281328
ruby_ast_node_info(
1329-
int node: @ruby_ast_node ref,
1329+
unique int node: @ruby_ast_node ref,
13301330
int parent: @ruby_ast_node_parent ref,
13311331
int parent_index: int ref,
13321332
int loc: @location ref
@@ -1385,7 +1385,7 @@ case @erb_token.kind of
13851385

13861386
#keyset[parent, parent_index]
13871387
erb_ast_node_info(
1388-
int node: @erb_ast_node ref,
1388+
unique int node: @erb_ast_node ref,
13891389
int parent: @erb_ast_node_parent ref,
13901390
int parent_index: int ref,
13911391
int loc: @location ref

0 commit comments

Comments
 (0)