Skip to content

Commit

Permalink
Fix for issue 4 - No such column 'CurrencyIsoCode' on entity 'ApexClass'
Browse files Browse the repository at this point in the history
  • Loading branch information
afawcettffdc committed Mar 18, 2014
1 parent 59d4d52 commit 508512e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/classes/fflib_SObjectSelector.cls
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public abstract with sharing class fflib_SObjectSelector
/**
* This overrides the Multi Currency handling, preventing it from injecting the CurrencyIsoCode field for certain System objects that don't ever support it
**/
private static Set<String> STANDARD_WITHOUT_CURRENCYISO = new Set<String> { 'AsyncApexJob' };
private static Set<String> STANDARD_WITHOUT_CURRENCYISO = new Set<String> { 'ApexClass', 'AsyncApexJob' };

private fflib_StringBuilder.FieldListBuilder m_fieldListBuilder;

Expand All @@ -53,7 +53,7 @@ public abstract with sharing class fflib_SObjectSelector
**/
public fflib_SObjectSelector()
{
this(false);
this(false);
}

/**
Expand All @@ -63,15 +63,15 @@ public abstract with sharing class fflib_SObjectSelector
**/
public fflib_SObjectSelector(Boolean includeFieldSetFields)
{
m_includeFieldSetFields = includeFieldSetFields;
m_includeFieldSetFields = includeFieldSetFields;
}

/**
* Override this method to provide a list of Fieldsets that can optionally drive inclusion of additional fields in the base queries
**/
public virtual List<Schema.FieldSet> getSObjectFieldSetList()
{
return null;
return null;
}

/**
Expand Down Expand Up @@ -177,6 +177,6 @@ public abstract with sharing class fflib_SObjectSelector
private String buildQuerySObjectById()
{
return String.format('SELECT {0} FROM {1} WHERE id in :idSet ORDER BY {2}',
new List<String>{getFieldListString(),getSObjectName(),getOrderBy()});
new List<String>{getFieldListString(),getSObjectName(),getOrderBy()});
}
}

0 comments on commit 508512e

Please sign in to comment.