From bbdeca0db271a6ad961b04bf8783d915b62aeaba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=8C=90=EB=8F=8C?= Date: Mon, 26 Feb 2024 23:12:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=A0=EA=B7=9C=20=EA=B8=B0=ED=9A=8D?= =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=84=B0=20=EC=97=90=EB=9F=AC=20=EB=A9=94?= =?UTF-8?q?=EB=AA=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/Git/ExcelSQL.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Server/Git/ExcelSQL.cs b/Server/Git/ExcelSQL.cs index c30db36..30d74fe 100644 --- a/Server/Git/ExcelSQL.cs +++ b/Server/Git/ExcelSQL.cs @@ -40,6 +40,9 @@ namespace Server.Git query = new StringBuilder(); for (int n = 0; n < sheets.Count; n++) { + //더 윗단에서 지워버려 에러가 발생되는중. + //시스템 수정할것 + Console.WriteLine(sheets[n].name); //초기화 newTableQuery = new StringBuilder(); tableDatas.Append("("); @@ -52,6 +55,7 @@ namespace Server.Git { if (sheets[n].dataEnum[m] == "client") continue; + if (sheets[n].type[m] == "long" && sheets[n].variable[m] == "index") { newTableQuery.Append("index SERIAL PRIMARY KEY"); @@ -63,7 +67,6 @@ namespace Server.Git newTableQuery.Append(","); tableDatas.Append(", "); } - switch (sheets[n].type[m]) { case "bool": @@ -127,7 +130,6 @@ namespace Server.Git { query.Append(", "); } - switch (sheets[n].type[m]) { case "bool": @@ -135,6 +137,7 @@ namespace Server.Git case "int": case "float": case "long": + Console.WriteLine($"{pair.Value[sheets[n].variable[m]]}"); query.Append($"{pair.Value[sheets[n].variable[m]]}"); break; case "string":