Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Aug 14, 2017
1 parent 71236d8 commit 3fef106
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions SmartSql.Tests/Maps/T_Test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
<Statements>
<Statement Id="QueryParams">
<Where>
<!--<IsNotEmpty Prepend="And Id" Property="Ids" In="true">
</IsNotEmpty>-->
<IsNotEmpty Property="Name" Prepend="And">
Name Like Concat('%','Name','-%')
</IsNotEmpty>
Expand Down
1 change: 1 addition & 0 deletions SmartSql.Tests/SmartSqlMapper/SmartSqlMapper_Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public void Query()
SqlId = "GetList",
Request = new
{
Ids = new int[] { 1, 2, 3, 45, 6 },
OrderBy = "4",
Id = 1,
Yes = true,
Expand Down
8 changes: 4 additions & 4 deletions SmartSql/SmartSql.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<PackageProjectUrl>https://github.com/Ahoo-Wang/SmartSql</PackageProjectUrl>
<RepositoryUrl>https://github.com/Ahoo-Wang/SmartSql</RepositoryUrl>
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<Version>1.8.6</Version>
<AssemblyVersion>1.8.6.0</AssemblyVersion>
<FileVersion>1.8.6.0</FileVersion>
<Version>1.8.6.1</Version>
<AssemblyVersion>1.8.6.1</AssemblyVersion>
<FileVersion>1.8.6.1</FileVersion>
<PackageTags>Dapper MyBatis Cache(Memory | Redis) ZooKeeper R/W Splitting</PackageTags>
<PackageReleaseNotes>1. Optimize the generated SQL .</PackageReleaseNotes>
<PackageReleaseNotes></PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion SmartSql/SqlMap/Tags/Where.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public override StringBuilder BuildChildSql(RequestContext context, string param
if (FilterTerms.Any(term => term.ToUpper() == firstTerm.ToUpper()))
{
sqlTerms[0] = "";
strSql = String.Join("", sqlTerms);
strSql = String.Join(" ", sqlTerms);
}
isFirstChild = false;
}
Expand Down

0 comments on commit 3fef106

Please sign in to comment.