Fix QuestDb table names case sensitive issue on linux

This commit is contained in:
CarbonHe 2022-08-17 10:24:29 +08:00
parent f29735ffdd
commit d4a1e13389
3 changed files with 3 additions and 9 deletions

1
.gitignore vendored
View File

@ -209,3 +209,4 @@ GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml
Src/Asp.NetCore2/SqlSeverTest/.idea/
.idea

View File

@ -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)

View File

@ -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))