Skip to content

Commit

Permalink
LDEV-4828 testcase for dump crash with query with 31 cols
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed May 16, 2024
1 parent 8b7f6ce commit 24b3ffe
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/tickets/LDEV4828.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
component extends = "org.lucee.cfml.test.LuceeTestCase" {

function run( testResults, testBox ){
describe( "Testcase for LDEV-4828", function(){
it( title="dump crashes with 31 columns", body=function( currentSpec ) {
var q = queryNew("")
var numberOfColumns = 31 // 30 works OK, 31 throws error: The value [2147483648] is outside the range that can be represented as an int.
for(var i=1; i<=numberOfColumns; i++) {
queryAddColumn(q, "c#i#", ["x"])
}
dump(q)
});
});
}

}

0 comments on commit 24b3ffe

Please sign in to comment.