Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 2 | 3 | 0.990 | statement_list[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 22 | 166 | src/NHibernate/Loader/Custom/Sql/SQLQueryParser.cs |
2 | 22 | 207 | src/NHibernate/Loader/Custom/Sql/SQLQueryParser.cs |
| ||||
string[] columnAliases; // Let return-propertys override whatever the persister has for aliases. if ( !fieldResults.TryGetValue(propertyName, out columnAliases)) { columnAliases = collectionPersister.GetCollectionPropertyColumnAliases(propertyName, collectionSuffix); } if (columnAliases == null || columnAliases.Length == 0) { throw new QueryException("No column name found for property [" + propertyName + "] for alias [" + aliasName + "]", originalQueryString); } if (columnAliases.Length != 1) { // TODO: better error message since we actually support composites if names are explicitly listed. throw new QueryException( "SQL queries only support properties mapped to a single column - property [" + propertyName + "] is mapped to " + columnAliases.Length + " columns.", originalQueryString); } aliasesFound++; return columnAliases[0]; |
| ||||
string[] columnAliases; // Let return-propertys override whatever the persister has for aliases. if ( !fieldResults.TryGetValue(propertyName, out columnAliases)) { columnAliases = persister.GetSubclassPropertyColumnAliases(propertyName, suffix); } if (columnAliases == null || columnAliases.Length == 0) { throw new QueryException("No column name found for property [" + propertyName + "] for alias [" + aliasName + "]", originalQueryString); } if (columnAliases.Length != 1) { // TODO: better error message since we actually support composites if names are explicitly listed. throw new QueryException( "SQL queries only support properties mapped to a single column - property [" + propertyName + "] is mapped to " + columnAliases.Length + " columns.", originalQueryString); } aliasesFound++; return columnAliases[0]; |
| |||
string[] columnAliases; // Let return-propertys override whatever the persister has for aliases. if ( !fieldResults.TryGetValue(propertyName, out columnAliases)) { columnAliases = [[#variable2d0a5660]]. [[#variable70e44460]](propertyName, [[#variable70e487e0]]); } if (columnAliases == null || columnAliases.Length == 0) { throw new QueryException("No column name found for property [" + propertyName + "] for alias [" + aliasName + "]", originalQueryString); } if (columnAliases.Length != 1) { // TODO: better error message since we actually support composites if names are explicitly listed. throw new QueryException("SQL queries only support properties mapped to a single column - property [" + propertyName + "] is mapped to " + columnAliases.Length + " columns.", originalQueryString); } aliasesFound++; return columnAliases[0]; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2d0a5660]] | collectionPersister |
1 | 2 | [[#2d0a5660]] | persister |
2 | 1 | [[#70e44460]] | GetCollectionPropertyColumnAliases |
2 | 2 | [[#70e44460]] | GetSubclassPropertyColumnAliases |
3 | 1 | [[#70e487e0]] | collectionSuffix |
3 | 2 | [[#70e487e0]] | suffix |