Skip to content
This repository
Browse code

fix for pagination in railo. seems that railo keeps struct references…

… in the sql struct even after a Duplicate(). also did not see a reason for loc.rel.executed to be there since the executed variables should only be in the private scope of the relation object.
  • Loading branch information...
commit 975eedb595d72b2cd8b2cbc08d9c21295dd6c6e0 1 parent 21d53e8
authored February 05, 2012

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  src/relation/initialization.cfm
5  src/relation/initialization.cfm
@@ -68,7 +68,10 @@
68 68
 		
69 69
 		// duplicate object and sql
70 70
 		loc.rel = Duplicate(this);
71  
-		loc.rel.executed = false;
  71
+		
  72
+		// fix for railo as it seems to keep references in the this.sql struct after a duplicate
  73
+		if (StructKeyExists(server, "railo"))
  74
+			loc.rel.sql = Duplicate(this.sql);
72 75
 		
73 76
 		// remove query values that should not be kept in new instance
74 77
 		if (variables.executed EQ true OR StructKeyExists(variables.cache, "query")) {

0 notes on commit 975eedb

Please sign in to comment.
Something went wrong with that request. Please try again.