Comments (5)
When this issue occurs for you, are you sure the resultset (output of the query) is not empty?
I believe when the output is empty you will get that error.
If so you can try to extend public int compare
in StringListComparator.java with something like
for (int i = 0; i < _SortKeys1.size(); i++) {
if (!a1.isEmpty() && !a2.isEmpty() {
.....
} else if....
Otherwise you can also write your test differently (with run
) and explicitly check on a rowcount.
If above is helping more people I can also create a PR for that. Or maybe @six42 has a better approach for your isse?
from jdbcslim.
@Unforgettable631, you are right. IndexOutOfBoundsException
only occurs when the query is empty at that moment. I would like to see that the expected values are missing when the query gives an empty result.
from jdbcslim.
Something like this?
!|SQLCommand|TestDatabase|select ID,Name from TestData where Name in('notThere', 'unknown')|SORT|
|ID?|NAME?>|
|1|notThere|
|2|unknown|
!|SQLCommand|TestDatabase|select ID,Name from TestData where Name in('notThere', 'unknown')|SORT|
|ID?|NAME?>|
|=~/\A\z/|=~/\A\z/|
from jdbcslim.
Thanks @Gertray13 for reporting this and thanks @Unforgettable631 for finding a soution and writing a test case to confirm it.
from jdbcslim.
@six42, no problem. Your fix is more robust I think. Do you have any intentions to release the latest version?
from jdbcslim.
Related Issues (20)
- Add method to do simple single query
- Issues integrating JDBC Slim into FitNesse HOT 2
- `getRowCount()` should return 0 if first non-header row does not have values HOT 1
- List version 1.2.1 as release on GitHub HOT 2
- Jdbcslim tests are failing on the H2 driver when using maven HOT 9
- result should be empty (no records)
- Question: Connecting to SAP Hana DB using JdbcSlim HOT 12
- SQLCommand - dbExecute:Method not supported HOT 2
- Problem to use SQLCommand HOT 1
- Surplus and Missing rows not reported HOT 2
- Empty row when no records returned in Table:SQLCommand HOT 5
- JdbcSlim not working with CsvDriver
- Show / use resultsheet without header columns HOT 2
- Trouble with installation regarding root page and suite setup page HOT 3
- JDBC slim with cassandra
- hi Is,this jdbslim support connect hive?
- I'd like a select where you can store the returned value of a cell in a variable HOT 2
- SQLServer binary data column when queried value misses 0x prefix HOT 5
- [CI/CD pipeline] java.lang.Exception: java.lang.RuntimeException: decrypt of *** failed. Wrong Key Store used? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jdbcslim.