regression: duplicated queries share the same AtomicInteger for recordcount

Description

https://trycf.com/gist/1bd412e1b3ab5874ed6355ea96915fa8/lucee6-beta?theme=monokai

<cfscript> q = queryNew("id,name","integer,varchar"); loop list="micha,zac,brad,pothys" item="n" index="i" { r = queryAddRow(q); querySetCell(q, "id", r, r) querySetCell(q, "name", n, r) } dump(q); q2 = duplicate(q); loop times=2 { queryAddRow(q2); // adds rows to both q and 2s } dump(q); dump(q2); </cfscript>

Environment

None

Attachments

1
  • 30 Jun 2023, 12:55 pm

Activity

Show:
Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Created 30 June 2023 at 12:55
Updated 16 January 2025 at 07:18
Resolved 1 July 2023 at 17:17

Flag notifications