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

Commit cc28614

Browse files
committed
Merge pull request #298 from Lee337/master
JoinSqlBuilder - catered for schema escaping
2 parents 1284cb2 + 999929c commit cc28614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.OrmLite/JoinSqlBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public JoinSqlBuilder<TNewPoco, TBasePoco> CrossJoin<TSourceTable, TDestinationT
376376

377377
private string GetSchema(Type type)
378378
{
379-
return string.IsNullOrEmpty(type.GetModelDefinition().Schema) ? string.Empty : string.Format("{0}.", type.GetModelDefinition().Schema);
379+
return string.IsNullOrEmpty(type.GetModelDefinition().Schema) ? string.Empty : string.Format("\"{0}\".", type.GetModelDefinition().Schema);
380380
}
381381

382382
private Type PreviousAssociatedType(Type sourceTableType, Type destinationTableType)

0 commit comments

Comments
 (0)