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":