Skip to content

Commit e0fd9cc

Browse files
committed
add bool, nodes, columns, functions to reserved names
1 parent 170da20 commit e0fd9cc

1 file changed

Lines changed: 56 additions & 5 deletions

File tree

diesel_cli/src/infer_schema_internals/inference.rs

Lines changed: 56 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,62 @@ use super::table_data::*;
77
use crate::database::InferConnection;
88

99
static RESERVED_NAMES: &[&str] = &[
10-
"abstract", "alignof", "as", "become", "box", "break", "const", "continue", "crate", "do",
11-
"else", "enum", "extern", "false", "final", "fn", "for", "if", "impl", "in", "let", "loop",
12-
"macro", "match", "mod", "move", "mut", "offsetof", "override", "priv", "proc", "pub", "pure",
13-
"ref", "return", "Self", "self", "sizeof", "static", "struct", "super", "trait", "true",
14-
"type", "typeof", "unsafe", "unsized", "use", "virtual", "where", "while", "yield",
10+
"abstract",
11+
"alignof",
12+
"as",
13+
"become",
14+
"box",
15+
"break",
16+
"const",
17+
"continue",
18+
"crate",
19+
"do",
20+
"else",
21+
"enum",
22+
"extern",
23+
"false",
24+
"final",
25+
"fn",
26+
"for",
27+
"if",
28+
"impl",
29+
"in",
30+
"let",
31+
"loop",
32+
"macro",
33+
"match",
34+
"mod",
35+
"move",
36+
"mut",
37+
"offsetof",
38+
"override",
39+
"priv",
40+
"proc",
41+
"pub",
42+
"pure",
43+
"ref",
44+
"return",
45+
"Self",
46+
"self",
47+
"sizeof",
48+
"static",
49+
"struct",
50+
"super",
51+
"trait",
52+
"true",
53+
"type",
54+
"typeof",
55+
"unsafe",
56+
"unsized",
57+
"use",
58+
"virtual",
59+
"where",
60+
"while",
61+
"yield",
62+
"bool",
63+
"nodes",
64+
"columns",
65+
"functions",
1566
];
1667

1768
fn is_reserved_name(name: &str) -> bool {

0 commit comments

Comments
 (0)