From d4a1e133898b0c1e4b264ec7d03425644278154f Mon Sep 17 00:00:00 2001 From: CarbonHe Date: Wed, 17 Aug 2022 10:24:29 +0800 Subject: [PATCH] Fix QuestDb table names case sensitive issue on linux --- .gitignore | 1 + .../QuestDB/DbMaintenance/QuestDBDbMaintenance.cs | 2 +- .../Realization/QuestDB/SqlBuilder/QuestDBBuilder.cs | 9 +-------- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 5ca33dafb..68bb0e265 100644 --- a/.gitignore +++ b/.gitignore @@ -209,3 +209,4 @@ GeneratedArtifacts/ _Pvt_Extensions/ ModelManifest.xml Src/Asp.NetCore2/SqlSeverTest/.idea/ +.idea diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbMaintenance/QuestDBDbMaintenance.cs b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbMaintenance/QuestDBDbMaintenance.cs index 78221fd8c..988aeb987 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbMaintenance/QuestDBDbMaintenance.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbMaintenance/QuestDBDbMaintenance.cs @@ -432,7 +432,7 @@ namespace SqlSugar //} columnArray.Add(addItem); } - string tableString = string.Format(this.CreateTableSql, this.SqlBuilder.GetTranslationTableName(tableName.ToLower()), string.Join(",\r\n", columnArray)); + string tableString = string.Format(this.CreateTableSql, this.SqlBuilder.GetTranslationTableName(tableName), string.Join(",\r\n", columnArray)); return tableString; } public override bool IsAnyConstraint(string constraintName) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/SqlBuilder/QuestDBBuilder.cs b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/SqlBuilder/QuestDBBuilder.cs index 160f2caed..8ebd2918c 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/SqlBuilder/QuestDBBuilder.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/SqlBuilder/QuestDBBuilder.cs @@ -35,14 +35,7 @@ namespace SqlSugar } } - public bool isAutoToLower - { - get - { - if (this.Context.CurrentConnectionConfig.MoreSettings == null) return true; - return this.Context.CurrentConnectionConfig.MoreSettings.PgSqlIsAutoToLower; - } - } + public bool isAutoToLower => false; public override string GetTranslationColumnName(string propertyName) { if (propertyName.Contains(".")&& !propertyName.Contains(SqlTranslationLeft))