-
-
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.
Merge pull request #2235 from zspitzer/LDEV-4695
LDEV-4695 QoQ HSQLDB enable sql.enforce_types=false
- Loading branch information
Showing
2 changed files
with
41 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,40 @@ | ||
component extends="org.lucee.cfml.test.LuceeTestCase" labels="qoq" { | ||
|
||
function beforeAll(){ | ||
variables.q = queryNew("navid, type, url", "varchar,decimal,VarChar", | ||
[{ | ||
"navid": 200, | ||
"type": 1, | ||
"url": "football" | ||
} | ||
] | ||
); | ||
}; | ||
|
||
function run( testResults , testBox ) { | ||
|
||
describe( title='QofQ' , body=function(){ | ||
|
||
it( title='QoQ error with types and subselect' , body=function() { | ||
|
||
query name="local.res" dbtype="query" { | ||
echo(" | ||
select navid, type, url | ||
from variables.q | ||
where url = 'football' | ||
and type = 1 | ||
and left( navid, 3 ) in ( | ||
select navid | ||
from variables.q | ||
where type = 1 | ||
and url = 'football') | ||
"); | ||
} | ||
expect( res.recordcount ).toBe( 1 ); | ||
}); | ||
|
||
}); | ||
|
||
} | ||
|
||
} |