mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
C#: Change varchar to string in the dbscheme.
This commit is contained in:
@@ -157,28 +157,28 @@ compilation_finished(
|
||||
|
||||
externalDefects(
|
||||
unique int id: @externalDefect,
|
||||
varchar(900) queryPath: string ref,
|
||||
string queryPath: string ref,
|
||||
int location: @location ref,
|
||||
varchar(900) message: string ref,
|
||||
string message: string ref,
|
||||
float severity: float ref);
|
||||
|
||||
externalMetrics(
|
||||
unique int id: @externalMetric,
|
||||
varchar(900) queryPath: string ref,
|
||||
string queryPath: string ref,
|
||||
int location: @location ref,
|
||||
float value: float ref);
|
||||
|
||||
externalData(
|
||||
int id: @externalDataElement,
|
||||
varchar(900) path: string ref,
|
||||
string path: string ref,
|
||||
int column: int ref,
|
||||
varchar(900) value: string ref);
|
||||
string value: string ref);
|
||||
|
||||
snapshotDate(
|
||||
unique date snapshotDate: date ref);
|
||||
|
||||
sourceLocationPrefix(
|
||||
varchar(900) prefix: string ref);
|
||||
string prefix: string ref);
|
||||
|
||||
/*
|
||||
* Duplicate code
|
||||
@@ -186,12 +186,12 @@ sourceLocationPrefix(
|
||||
|
||||
duplicateCode(
|
||||
unique int id: @duplication,
|
||||
varchar(900) relativePath: string ref,
|
||||
string relativePath: string ref,
|
||||
int equivClass: int ref);
|
||||
|
||||
similarCode(
|
||||
unique int id: @similarity,
|
||||
varchar(900) relativePath: string ref,
|
||||
string relativePath: string ref,
|
||||
int equivClass: int ref);
|
||||
|
||||
@duplication_or_similarity = @duplication | @similarity
|
||||
@@ -252,9 +252,9 @@ numlines(
|
||||
assemblies(
|
||||
unique int id: @assembly,
|
||||
int file: @file ref,
|
||||
varchar(900) fullname: string ref,
|
||||
varchar(900) name: string ref,
|
||||
varchar(900) version: string ref);
|
||||
string fullname: string ref,
|
||||
string name: string ref,
|
||||
string version: string ref);
|
||||
|
||||
/*
|
||||
fromSource(0) = unknown,
|
||||
@@ -263,15 +263,15 @@ assemblies(
|
||||
*/
|
||||
files(
|
||||
unique int id: @file,
|
||||
varchar(900) name: string ref,
|
||||
varchar(900) simple: string ref,
|
||||
varchar(900) ext: string ref,
|
||||
string name: string ref,
|
||||
string simple: string ref,
|
||||
string ext: string ref,
|
||||
int fromSource: int ref);
|
||||
|
||||
folders(
|
||||
unique int id: @folder,
|
||||
varchar(900) name: string ref,
|
||||
varchar(900) simple: string ref);
|
||||
string name: string ref,
|
||||
string simple: string ref);
|
||||
|
||||
@container = @folder | @file ;
|
||||
|
||||
@@ -291,7 +291,7 @@ file_extraction_mode(
|
||||
|
||||
namespaces(
|
||||
unique int id: @namespace,
|
||||
varchar(900) name: string ref);
|
||||
string name: string ref);
|
||||
|
||||
namespace_declarations(
|
||||
unique int id: @namespace_declaration,
|
||||
@@ -330,7 +330,7 @@ using_directive_location(
|
||||
types(
|
||||
unique int id: @type,
|
||||
int kind: int ref,
|
||||
varchar(900) name: string ref);
|
||||
string name: string ref);
|
||||
|
||||
case @type.kind of
|
||||
1 = @bool_type
|
||||
@@ -378,7 +378,7 @@ case @type.kind of
|
||||
|
||||
typerefs(
|
||||
unique int id: @typeref,
|
||||
varchar(900) name: string ref);
|
||||
string name: string ref);
|
||||
|
||||
typeref_type(
|
||||
int id: @typeref ref,
|
||||
@@ -540,7 +540,7 @@ specific_type_parameter_nullability(
|
||||
|
||||
modifiers(
|
||||
unique int id: @modifier,
|
||||
varchar(900) name: string ref);
|
||||
string name: string ref);
|
||||
|
||||
has_modifiers(
|
||||
int id: @modifiable_direct ref,
|
||||
@@ -558,7 +558,7 @@ compiler_generated(unique int id: @modifiable_direct ref);
|
||||
|
||||
exprorstmt_name(
|
||||
unique int parent_id: @named_exprorstmt ref,
|
||||
varchar(900) name: string ref);
|
||||
string name: string ref);
|
||||
|
||||
nested_types(
|
||||
unique int id: @type ref,
|
||||
@@ -567,7 +567,7 @@ nested_types(
|
||||
|
||||
properties(
|
||||
unique int id: @property,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int declaring_type_id: @type ref,
|
||||
int type_id: @type_or_ref ref,
|
||||
int unbound_id: @property ref);
|
||||
@@ -578,7 +578,7 @@ property_location(
|
||||
|
||||
indexers(
|
||||
unique int id: @indexer,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int declaring_type_id: @type ref,
|
||||
int type_id: @type_or_ref ref,
|
||||
int unbound_id: @indexer ref);
|
||||
@@ -590,7 +590,7 @@ indexer_location(
|
||||
accessors(
|
||||
unique int id: @accessor,
|
||||
int kind: int ref,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int declaring_member_id: @member ref,
|
||||
int unbound_id: @accessor ref);
|
||||
|
||||
@@ -605,7 +605,7 @@ accessor_location(
|
||||
|
||||
events(
|
||||
unique int id: @event,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int declaring_type_id: @type ref,
|
||||
int type_id: @type_or_ref ref,
|
||||
int unbound_id: @event ref);
|
||||
@@ -617,7 +617,7 @@ event_location(
|
||||
event_accessors(
|
||||
unique int id: @event_accessor,
|
||||
int kind: int ref,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int declaring_event_id: @event ref,
|
||||
int unbound_id: @event_accessor ref);
|
||||
|
||||
@@ -632,8 +632,8 @@ event_accessor_location(
|
||||
|
||||
operators(
|
||||
unique int id: @operator,
|
||||
varchar(900) name: string ref,
|
||||
varchar(900) symbol: string ref,
|
||||
string name: string ref,
|
||||
string symbol: string ref,
|
||||
int declaring_type_id: @type ref,
|
||||
int type_id: @type_or_ref ref,
|
||||
int unbound_id: @operator ref);
|
||||
@@ -654,7 +654,7 @@ constant_value(
|
||||
|
||||
methods(
|
||||
unique int id: @method,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int declaring_type_id: @type ref,
|
||||
int type_id: @type_or_ref ref,
|
||||
int unbound_id: @method ref);
|
||||
@@ -665,7 +665,7 @@ method_location(
|
||||
|
||||
constructors(
|
||||
unique int id: @constructor,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int declaring_type_id: @type ref,
|
||||
int unbound_id: @constructor ref);
|
||||
|
||||
@@ -675,7 +675,7 @@ constructor_location(
|
||||
|
||||
destructors(
|
||||
unique int id: @destructor,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int declaring_type_id: @type ref,
|
||||
int unbound_id: @destructor ref);
|
||||
|
||||
@@ -693,7 +693,7 @@ explicitly_implements(
|
||||
|
||||
local_functions(
|
||||
unique int id: @local_function,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int return_type: @type ref,
|
||||
int unbound_id: @local_function ref);
|
||||
|
||||
@@ -710,7 +710,7 @@ local_function_stmts(
|
||||
fields(
|
||||
unique int id: @field,
|
||||
int kind: int ref,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int declaring_type_id: @type ref,
|
||||
int type_id: @type_or_ref ref,
|
||||
int unbound_id: @field ref);
|
||||
@@ -727,7 +727,7 @@ field_location(
|
||||
localvars(
|
||||
unique int id: @local_variable,
|
||||
int kind: int ref,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int implicitly_typed: int ref /* 0 = no, 1 = yes */,
|
||||
int type_id: @type_or_ref ref,
|
||||
int parent_id: @local_var_decl_expr ref);
|
||||
@@ -748,7 +748,7 @@ localvar_location(
|
||||
#keyset[index, parent_id]
|
||||
params(
|
||||
unique int id: @parameter,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int type_id: @type_or_ref ref,
|
||||
int index: int ref,
|
||||
int mode: int ref, /* value = 0, ref = 1, out = 2, array = 3, this = 4 */
|
||||
@@ -1085,7 +1085,7 @@ expr_compiler_generated(
|
||||
|
||||
expr_value(
|
||||
unique int id: @expr ref,
|
||||
varchar(900) value: string ref);
|
||||
string value: string ref);
|
||||
|
||||
expr_call(
|
||||
unique int caller_id: @expr ref,
|
||||
@@ -1103,7 +1103,7 @@ expr_location(
|
||||
|
||||
dynamic_member_name(
|
||||
unique int id: @late_bindable_expr ref,
|
||||
varchar(900) name: string ref);
|
||||
string name: string ref);
|
||||
|
||||
@qualifiable_expr = @member_access_expr
|
||||
| @method_invocation_expr
|
||||
@@ -1119,7 +1119,7 @@ expr_argument(
|
||||
|
||||
expr_argument_name(
|
||||
unique int id: @expr ref,
|
||||
varchar(900) name: string ref);
|
||||
string name: string ref);
|
||||
|
||||
/** CONTROL/DATA FLOW **/
|
||||
|
||||
@@ -1129,18 +1129,18 @@ expr_argument_name(
|
||||
|
||||
xmlEncoding (
|
||||
unique int id: @file ref,
|
||||
varchar(900) encoding: string ref);
|
||||
string encoding: string ref);
|
||||
|
||||
xmlDTDs(
|
||||
unique int id: @xmldtd,
|
||||
varchar(900) root: string ref,
|
||||
varchar(900) publicId: string ref,
|
||||
varchar(900) systemId: string ref,
|
||||
string root: string ref,
|
||||
string publicId: string ref,
|
||||
string systemId: string ref,
|
||||
int fileid: @file ref);
|
||||
|
||||
xmlElements(
|
||||
unique int id: @xmlelement,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int parentid: @xmlparent ref,
|
||||
int idx: int ref,
|
||||
int fileid: @file ref);
|
||||
@@ -1148,15 +1148,15 @@ xmlElements(
|
||||
xmlAttrs(
|
||||
unique int id: @xmlattribute,
|
||||
int elementid: @xmlelement ref,
|
||||
varchar(900) name: string ref,
|
||||
varchar(3600) value: string ref,
|
||||
string name: string ref,
|
||||
string value: string ref,
|
||||
int idx: int ref,
|
||||
int fileid: @file ref);
|
||||
|
||||
xmlNs(
|
||||
int id: @xmlnamespace,
|
||||
varchar(900) prefixName: string ref,
|
||||
varchar(900) URI: string ref,
|
||||
string prefixName: string ref,
|
||||
string URI: string ref,
|
||||
int fileid: @file ref);
|
||||
|
||||
xmlHasNs(
|
||||
@@ -1166,13 +1166,13 @@ xmlHasNs(
|
||||
|
||||
xmlComments(
|
||||
unique int id: @xmlcomment,
|
||||
varchar(3600) text: string ref,
|
||||
string text: string ref,
|
||||
int parentid: @xmlparent ref,
|
||||
int fileid: @file ref);
|
||||
|
||||
xmlChars(
|
||||
unique int id: @xmlcharacters,
|
||||
varchar(3600) text: string ref,
|
||||
string text: string ref,
|
||||
int parentid: @xmlparent ref,
|
||||
int idx: int ref,
|
||||
int isCDATA: int ref,
|
||||
@@ -1192,8 +1192,8 @@ xmllocations(
|
||||
commentline(
|
||||
unique int id: @commentline,
|
||||
int kind: int ref,
|
||||
varchar(800) text: string ref,
|
||||
varchar(800) rawtext: string ref);
|
||||
string text: string ref,
|
||||
string rawtext: string ref);
|
||||
|
||||
case @commentline.kind of
|
||||
0 = @singlelinecomment
|
||||
@@ -1246,22 +1246,22 @@ asp_code_inline(unique int code: @asp_code ref);
|
||||
asp_directive_attribute(
|
||||
int directive: @asp_directive ref,
|
||||
int index: int ref,
|
||||
varchar(1000) name: string ref,
|
||||
string name: string ref,
|
||||
int value: @asp_quoted_string ref);
|
||||
asp_directive_name(
|
||||
unique int directive: @asp_directive ref,
|
||||
varchar(1000) name: string ref);
|
||||
string name: string ref);
|
||||
asp_element_body(
|
||||
unique int element: @asp_element ref,
|
||||
varchar(1000) body: string ref);
|
||||
string body: string ref);
|
||||
asp_tag_attribute(
|
||||
int tag: @asp_open_tag ref,
|
||||
int index: int ref,
|
||||
varchar(1000) name: string ref,
|
||||
string name: string ref,
|
||||
int attribute: @asp_attribute ref);
|
||||
asp_tag_name(
|
||||
unique int tag: @asp_open_tag ref,
|
||||
varchar(1000) name: string ref);
|
||||
string name: string ref);
|
||||
asp_tag_isempty(int tag: @asp_open_tag ref);
|
||||
|
||||
/* Common Intermediate Language - CIL */
|
||||
@@ -1616,7 +1616,7 @@ cil_access(
|
||||
|
||||
cil_value(
|
||||
unique int instruction: @cil_literal ref,
|
||||
varchar(900) value: string ref);
|
||||
string value: string ref);
|
||||
|
||||
#keyset[instruction, index]
|
||||
cil_switch(
|
||||
@@ -1649,7 +1649,7 @@ case @cil_type.kind of
|
||||
|
||||
cil_type(
|
||||
unique int id: @cil_type,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int kind: int ref,
|
||||
int parent: @cil_type_container ref,
|
||||
int sourceDecl: @cil_type ref);
|
||||
@@ -1665,7 +1665,7 @@ cil_array_type(
|
||||
|
||||
cil_method(
|
||||
unique int id: @cil_method,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int parent: @cil_type ref,
|
||||
int return_type: @cil_type ref);
|
||||
|
||||
@@ -1686,7 +1686,7 @@ cil_implements(
|
||||
cil_field(
|
||||
unique int id: @cil_field,
|
||||
int parent: @cil_type ref,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int field_type: @cil_type ref);
|
||||
|
||||
@cil_element = @cil_instruction | @cil_declaration | @cil_handler | @cil_attribute | @cil_namespace;
|
||||
@@ -1723,13 +1723,13 @@ cil_raiser(unique int event: @cil_event ref, int method: @cil_method ref);
|
||||
cil_property(
|
||||
unique int id: @cil_property,
|
||||
int parent: @cil_type ref,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int property_type: @cil_type ref);
|
||||
|
||||
#keyset[parent, name]
|
||||
cil_event(unique int id: @cil_event,
|
||||
int parent: @cil_type ref,
|
||||
varchar(900) name: string ref,
|
||||
string name: string ref,
|
||||
int event_type: @cil_type ref);
|
||||
|
||||
#keyset[impl, index]
|
||||
@@ -1827,14 +1827,14 @@ cil_attribute(
|
||||
#keyset[attribute_id, param]
|
||||
cil_attribute_named_argument(
|
||||
int attribute_id: @cil_attribute ref,
|
||||
varchar(100) param: string ref,
|
||||
varchar(900) value: string ref);
|
||||
string param: string ref,
|
||||
string value: string ref);
|
||||
|
||||
#keyset[attribute_id, index]
|
||||
cil_attribute_positional_argument(
|
||||
int attribute_id: @cil_attribute ref,
|
||||
int index: int ref,
|
||||
varchar(900) value: string ref);
|
||||
string value: string ref);
|
||||
|
||||
|
||||
// Common .Net data model covering both C# and CIL
|
||||
|
||||
Reference in New Issue
Block a user