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

Commit

Permalink
Remove AS JOIN Aliases which Oracle doesn't support
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Feb 11, 2019
1 parent 3960de1 commit c247404
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ServiceStack.OrmLite/Expressions/SqlExpression.Join.cs
Expand Up @@ -244,7 +244,7 @@ protected virtual SqlExpression<T> InternalJoin(string joinType, Expression join
FromExpression += joinFormat != null
? $" {joinType} {joinFormat(DialectProvider, joinDef, sqlExpr)}"
: joinAlias != null
? $" {joinType} {SqlTable(joinDef)} AS {DialectProvider.GetQuotedName(joinAlias.Alias)} {sqlExpr}"
? $" {joinType} {SqlTable(joinDef)} {DialectProvider.GetQuotedName(joinAlias.Alias)} {sqlExpr}"
: $" {joinType} {SqlTable(joinDef)} {sqlExpr}";


Expand Down
2 changes: 1 addition & 1 deletion src/ServiceStack.OrmLite/Expressions/SqlExpression.cs
Expand Up @@ -1315,7 +1315,7 @@ public string SelectExpression
public string FromExpression
{
get => string.IsNullOrEmpty(fromExpression)
? " \nFROM " + DialectProvider.GetQuotedTableName(modelDef) + (TableAlias != null ? " AS " + DialectProvider.GetQuotedName(TableAlias) : "")
? " \nFROM " + DialectProvider.GetQuotedTableName(modelDef) + (TableAlias != null ? " " + DialectProvider.GetQuotedName(TableAlias) : "")
: fromExpression;
set => fromExpression = value;
}
Expand Down

0 comments on commit c247404

Please sign in to comment.