fix(postgres): handle PostgreSQL views
This commit is contained in:
7 files changed
+19
-16
No files matched your search
@@ -1153,7 +1153,7 @@ pub async fn completion_assistant_search(
|
||||
let table_type: String = row.get(2);
|
||||
candidates.push(CompletionAssistantCandidate {
|
||||
name: row.get(0),
|
||||
kind: if table_type == "VIEW" {
|
||||
kind: if table_type.contains("VIEW") {
|
||||
CompletionAssistantCandidateKind::View
|
||||
} else {
|
||||
CompletionAssistantCandidateKind::Table
|
||||
|
||||
Reference in new issue
Block a user