This commit is contained in:
sunkaixuan 2017-10-16 15:11:46 +08:00
parent 7a77d122a8
commit 8f13126a57
2 changed files with 3 additions and 3 deletions

View File

@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.5.2.8")]
[assembly: AssemblyFileVersion("4.5.2.8")]
[assembly: AssemblyVersion("4.5.9")]
[assembly: AssemblyFileVersion("4.5.9")]

View File

@ -218,7 +218,7 @@ namespace SqlSugar
{
var oldIsEnableLog = this.Context.Ado.IsEnableLogEvent;
this.Context.Ado.IsEnableLogEvent = false;
string sql = @" select cu.COLUMN_name KEYNAME from user_cons_columns cu, user_constraints au
string sql = @" select distinct cu.COLUMN_name KEYNAME from user_cons_columns cu, user_constraints au
where cu.constraint_name = au.constraint_name
and au.constraint_type = 'P' and au.table_name = '" +tableName.ToUpper()+ @"'";
var pks = this.Context.Ado.SqlQuery<string>(sql);