---
source: tests/typing_surface/update_with_where.rs
description: "input=\"update Customers set Name='x' where \" cursor=36"
expression: "& a"
---
Assessment {
    input: "update Customers set Name='x' where ",
    cursor: 36,
    state: IncompleteAtEof,
    hint: Some(
        Candidates {
            items: [
                Candidate {
                    text: "Name",
                    kind: Identifier,
                    mode: Both,
                },
                Candidate {
                    text: "id",
                    kind: Identifier,
                    mode: Both,
                },
                Candidate {
                    text: "not",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "null",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "true",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "false",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "(",
                    kind: Punct,
                    mode: Both,
                },
            ],
            selected: None,
        },
    ),
    completion: Some(
        Completion {
            replaced_range: (
                36,
                36,
            ),
            partial_prefix: "",
            candidates: [
                Candidate {
                    text: "Name",
                    kind: Identifier,
                    mode: Both,
                },
                Candidate {
                    text: "id",
                    kind: Identifier,
                    mode: Both,
                },
                Candidate {
                    text: "not",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "null",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "true",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "false",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "(",
                    kind: Punct,
                    mode: Both,
                },
            ],
        },
    ),
    parse_result: Err(
        "Invalid(at_eof)",
    ),
}
