Skip to content
Browse files

Merge pull request #45 from liferealized/develop

fix for pagination in railo. seems that railo keeps struct references in...
  • Loading branch information...
2 parents 21d53e8 + 975eedb commit 6f3e8b3a74ce8ce74d581d3184d3b3c26aeeccf5 @dhumphreys committed Feb 5, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/relation/initialization.cfm
View
5 src/relation/initialization.cfm
@@ -68,7 +68,10 @@
// duplicate object and sql
loc.rel = Duplicate(this);
- loc.rel.executed = false;
+
+ // fix for railo as it seems to keep references in the this.sql struct after a duplicate
+ if (StructKeyExists(server, "railo"))
+ loc.rel.sql = Duplicate(this.sql);
// remove query values that should not be kept in new instance
if (variables.executed EQ true OR StructKeyExists(variables.cache, "query")) {

0 comments on commit 6f3e8b3

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