Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 2ccee5f

Browse files
committed
Fix IndexOfAny bug
1 parent 0365172 commit 2ccee5f

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

lib/ServiceStack.Text.dll

0 Bytes
Binary file not shown.

lib/ServiceStack.Text.pdb

0 Bytes
Binary file not shown.

src/ServiceStack.OrmLite/Expressions/SqlExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public virtual SqlExpression<T> From(string tables)
123123
else
124124
{
125125
tables.SqlVerifyFragment();
126-
var singleTable = tables.ToLower().IndexOfAny("join", ",") >= 0;
126+
var singleTable = tables.ToLower().IndexOfAny("join", ",") == -1;
127127
FromExpression = singleTable
128128
? " \nFROM " + OrmLiteConfig.DialectProvider.GetQuotedTableName(tables)
129129
: " \nFROM " + tables;

0 commit comments

Comments
 (0)