Skip to content

Commit 413eaf3

Browse files
committed
fix: detect parallel support on BoxLang
1 parent 48f70d2 commit 413eaf3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎models/QuickBuilder.cfc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ component accessors="true" transientCache="false" {
765765
* Adobe ColdFusion loses CFC private-method resolution inside cfthread.
766766
*/
767767
private boolean function supportsParallelEagerLoading() {
768-
return !findNoCase( "ColdFusion", server.coldfusion.productName );
768+
return !server.keyExists( "coldfusion" ) || !findNoCase( "ColdFusion", server.coldfusion.productName );
769769
}
770770

771771
private struct function denestEagerLoads( required array eagerLoads ) {

‎tests/specs/integration/BaseEntity/Relationships/EagerLoadingSpec.cfc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ component extends="tests.resources.ModuleIntegrationSpec" {
9090
expect( posts[ 1 ].getComments() ).toBeArray();
9191
expect( eagerThreads ).toHaveKey( "author" );
9292
expect( eagerThreads ).toHaveKey( "comments" );
93-
if ( findNoCase( "ColdFusion", server.coldfusion.productName ) ) {
93+
if ( server.keyExists( "coldfusion" ) && findNoCase( "ColdFusion", server.coldfusion.productName ) ) {
9494
expect( eagerThreads.author ).toBe( callingThread );
9595
expect( eagerThreads.comments ).toBe( callingThread );
9696
} else {

0 commit comments

Comments
 (0)