Skip to content

Commit

Permalink
366:修正读写分离时,insert into ...select语句处理到分库的问题(2016-09-12)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyq1162 committed Sep 12, 2016
1 parent 07dd044 commit c1a3ea9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion DAL/DbBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,8 @@ private object ExeScalarSQL(string cmdText, bool isProc)
{
object returnValue = null;
ConnBean coSlave = null;
if (!isOpenTrans && _IsAllowRecordSql)
//mssql 有 insert into ...select 操作。
if (!isOpenTrans && _IsAllowRecordSql && !cmdText.ToLower().TrimStart().StartsWith("insert "))
{
coSlave = connObject.GetSlave();
}
Expand Down
6 changes: 3 additions & 3 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyTitle("CYQ.Data 数据层(ORM)框架 V5 版本")]
[assembly: AssemblyDescription("论坛:http://www.cyqdata.com/cyqdata")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("秋式软件 (2016-09-11)")]
[assembly: AssemblyCompany("秋式软件 (2016-09-12)")]
[assembly: AssemblyProduct("CYQ.Data 数据层(ORM)框架 V5 版本")]
[assembly: AssemblyCopyright("版权所有 (C) 秋式软件 2010-2020")]
[assembly: AssemblyTrademark("CYQ.Data")]
Expand All @@ -31,5 +31,5 @@
//
// 可以指定所有这些值,也可以使用“修订号”和“内部版本号”的默认值,
// 方法是按如下所示使用“*”:
[assembly: AssemblyVersion("5.6.5.3")]
[assembly: AssemblyFileVersion("5.6.5.3")]
[assembly: AssemblyVersion("5.6.5.4")]
[assembly: AssemblyFileVersion("5.6.5.4")]
3 changes: 2 additions & 1 deletion 更新记录.txt
Original file line number Diff line number Diff line change
Expand Up @@ -578,4 +578,5 @@
362��DBTool��GetColumns���ӶԱ�ӳ���֧�֣�2016-09-05)
363�������ı����ݿ��ResetTable������ԭ��û����գ���2016-09-06)
364�����첢ȥ���ڲ���MD5��win2008�¼����㷨Ĭ�������쳣����2016-09-08)
365��ȥ��ӳ������������ƣ�֧�ָ�����ⲿӳ�䣩��2016-09-11)
365��ȥ��ӳ������������ƣ�֧�ָ�����ⲿӳ�䣩��2016-09-11)
366��������д����ʱ��insert into ...select��䴦�����ֿ�����⣨2016-09-12)

0 comments on commit c1a3ea9

Please sign in to comment.