From 0ea8a5478fb5fa6b2882d2597dba9ae7b7d12fbf Mon Sep 17 00:00:00 2001 From: Julian Mills Date: Wed, 24 Apr 2024 18:36:08 +0100 Subject: [PATCH] fix: incorrect query generation fixes #206 --- src/views/designer/DesignDrawer/helpers.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/designer/DesignDrawer/helpers.tsx b/src/views/designer/DesignDrawer/helpers.tsx index ccf655f4..f8f268f1 100644 --- a/src/views/designer/DesignDrawer/helpers.tsx +++ b/src/views/designer/DesignDrawer/helpers.tsx @@ -61,14 +61,14 @@ export function buildDefinitionQueries(previous: TableInfo, current: TableInfo) query += " SCHEMALESS"; } - query + ` TYPE ${tableType}`; + query += ` TYPE ${tableType}`; if (tableType === "RELATION" && current.schema.kind.in) { - query += ` IN ${current.schema.kind.in.join(", ")}`; + query += ` IN ${current.schema.kind.in.map(name => tb(name)).join(", ")}`; } if (tableType === "RELATION" && current.schema.kind.out) { - query += ` OUT ${current.schema.kind.out.join(", ")}`; + query += ` OUT ${current.schema.kind.out.map(name => tb(name)).join(", ")}`; } if (current.schema.view) {