Skip to content
This repository
Browse code

Merge pull request #45 from liferealized/develop

fix for pagination in railo. seems that railo keeps struct references in...
  • Loading branch information...
commit 6f3e8b3a74ce8ce74d581d3184d3b3c26aeeccf5 2 parents 21d53e8 + 975eedb
Don Humphreys authored

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

  1. +4 1 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 comments on commit 6f3e8b3

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