-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a test case and fix for LDEV-2637 (#828)
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
component extends="org.lucee.cfml.test.LuceeTestCase" { | ||
|
||
function run( testResults , testBox ) { | ||
myQuery = QueryNew("myCol1, myCol2,myCol3", "varchar,varchar,varchar"); | ||
QueryAddRow(myQuery, 1); | ||
|
||
describe( "test suite for LDEV2637", function() { | ||
it(title = "QuerySetCell column name without spaces", body = function( currentSpec ) { | ||
QuerySetCell(myQuery,"myCol2","Lucee", 1); | ||
expect("Lucee").toBe(myQuery.myCol2); | ||
}); | ||
|
||
it(title = "QuerySetCell column name with spaces", body = function( currentSpec ) { | ||
QuerySetCell(myQuery," myCol2","Lucee", 1); | ||
expect("Lucee").toBe(myQuery.myCol2); | ||
}); | ||
}); | ||
} | ||
} |