Browse Source

Update pgsql

pull/12/MERGE
610262374@qq.com 6 years ago
parent
commit
941b37aa3b
  1. 2
      Src/Asp.Net/PgSqlTest/Demo/Demo6_Queue.cs
  2. 2
      Src/Asp.Net/SqlSugar/Realization/PostgreSQL/DbMaintenance/PostgreSQLDbMaintenance.cs

2
Src/Asp.Net/PgSqlTest/Demo/Demo6_Queue.cs

@ -43,7 +43,7 @@ namespace OrmTest
db.Queryable<Order>().AddQueue();
db.Queryable<Order>().AddQueue();
db.AddQueue("select * from `order` where id=@id", new { id = 10000 });
db.AddQueue("select * from \"order\" where id=@id", new { id = 10000 });
var result2 = db.SaveQueues<Order, Order, Order>();
Console.WriteLine("#### Queue End ####");

2
Src/Asp.Net/SqlSugar/Realization/PostgreSQL/DbMaintenance/PostgreSQLDbMaintenance.cs

@ -356,7 +356,7 @@ namespace SqlSugar
public override List<DbColumnInfo> GetColumnInfosByTableName(string tableName, bool isCache = true)
{
return base.GetColumnInfosByTableName(tableName.ToLower(), isCache);
return base.GetColumnInfosByTableName(tableName.TrimEnd('"').TrimStart('"').ToLower(), isCache);
}
#endregion
}

Loading…
Cancel
Save