Skip to content

Commit

Permalink
v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcGueury committed Mar 8, 2024
1 parent 5544d91 commit d56096b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion option/src/j2_macro/java.j2_macro
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ import javax.json.*;
// See https://github.com/oracle/nosql-examples/blob/master/examples-nosql-java-sdk/sqlexamples/QueryData.java
QueryRequest queryRequest = new QueryRequest().setStatement("SELECT deptno, dname, loc FROM dept");
QueryIterableResult results = handle.queryIterable(queryRequest);
for (MapValue res : results) {
for (MapValue row : results) {
rows.add( new Dept( row.get("deptno").asInteger().getValue(), row.get("dname").asString().getValue(), row.get("loc").asString().getValue() ) );
}
{%- endmacro -%}

0 comments on commit d56096b

Please sign in to comment.