mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
- 修复 Oracle 导航属性 表别名过长的问题;
This commit is contained in:
parent
7796cd1c41
commit
96f3957b98
@ -121,7 +121,13 @@ namespace FreeSql.Odbc.Oracle
|
|||||||
sbnav.Clear();
|
sbnav.Clear();
|
||||||
if (tbUnionsGt0) sb.Append(") ftb");
|
if (tbUnionsGt0) sb.Append(") ftb");
|
||||||
}
|
}
|
||||||
return sb.Append(_tosqlAppendContent).ToString();
|
var sql = sb.Append(_tosqlAppendContent).ToString();
|
||||||
|
|
||||||
|
var aliasGreater30 = 0;
|
||||||
|
foreach (var tb in _tables)
|
||||||
|
if (tb.Alias.Length > 30) sql = sql.Replace(tb.Alias, $"than30_{aliasGreater30++}");
|
||||||
|
|
||||||
|
return sql;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OdbcOracleSelect(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere) : base(orm, commonUtils, commonExpression, dywhere) { }
|
public OdbcOracleSelect(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere) : base(orm, commonUtils, commonExpression, dywhere) { }
|
||||||
|
@ -121,7 +121,13 @@ namespace FreeSql.Oracle.Curd
|
|||||||
sbnav.Clear();
|
sbnav.Clear();
|
||||||
if (tbUnionsGt0) sb.Append(") ftb");
|
if (tbUnionsGt0) sb.Append(") ftb");
|
||||||
}
|
}
|
||||||
return sb.Append(_tosqlAppendContent).ToString();
|
var sql = sb.Append(_tosqlAppendContent).ToString();
|
||||||
|
|
||||||
|
var aliasGreater30 = 0;
|
||||||
|
foreach (var tb in _tables)
|
||||||
|
if (tb.Alias.Length > 30) sql = sql.Replace(tb.Alias, $"than30_{aliasGreater30++}");
|
||||||
|
|
||||||
|
return sql;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OracleSelect(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere) : base(orm, commonUtils, commonExpression, dywhere) { }
|
public OracleSelect(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere) : base(orm, commonUtils, commonExpression, dywhere) { }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user