mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Ruby: make node column unique
This commit is contained in:
@@ -260,7 +260,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,
|
||||
},
|
||||
|
||||
@@ -1326,7 +1326,7 @@ case @ruby_token.kind of
|
||||
|
||||
#keyset[parent, parent_index]
|
||||
ruby_ast_node_info(
|
||||
int node: @ruby_ast_node ref,
|
||||
unique int node: @ruby_ast_node ref,
|
||||
int parent: @ruby_ast_node_parent ref,
|
||||
int parent_index: int ref,
|
||||
int loc: @location ref
|
||||
@@ -1385,7 +1385,7 @@ case @erb_token.kind of
|
||||
|
||||
#keyset[parent, parent_index]
|
||||
erb_ast_node_info(
|
||||
int node: @erb_ast_node ref,
|
||||
unique int node: @erb_ast_node ref,
|
||||
int parent: @erb_ast_node_parent ref,
|
||||
int parent_index: int ref,
|
||||
int loc: @location ref
|
||||
|
||||
Reference in New Issue
Block a user