Skip to content

Commit

Permalink
Added a test case for LDEV-5254
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Jan 16, 2025
1 parent 7db4cad commit dcf38d3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/tickets/LDEV5254.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
component extends = "org.lucee.cfml.test.LuceeTestCase" {
function run( testResults, testBox ) {
describe( "test query duplicate for LDEV-5254 ", function() {
it( "test query duplicate", function() {
qry1 = querynew("a,b", "integer,integer");
queryaddrow(qry1);
querysetcell(qry1, "a", 1);
querysetcell(qry1, "b", 2);

qry2 = duplicate(qry1);
queryaddrow(qry2);
querysetcell(qry2, "a", 4);
querysetcell(qry2, "b", 5);

expect( querycolumndata(qry2, "a").len() ).toBe( 2 );
expect( querycolumndata(qry1, "a").len() ).toBe( 1 );
});
});
}
}

0 comments on commit dcf38d3

Please sign in to comment.