Permalink
Browse files

Expose the result of preparing a statement so that client projects ca…

…n mine it.
  • Loading branch information...
1 parent 4a92204 commit 5297b687394542481cf18c54da3e2b80fd70aa19 @julianhyde committed Jul 31, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/main/java/net/hydromatic/optiq/jdbc/OptiqPrepare.java
@@ -124,6 +124,13 @@ public PrepareResult(String sql,
}
return Linq4j.enumeratorIterator(enumerable.enumerator());
}
+
+ /** Returns the executable object. You may use this method to access the
+ * result of the preparation, but if you need to execute it please call
+ * {@link #enumerator()} or {@link #iterator()}. */
+ public Object getExecutable() {
+ return enumerable;
+ }
}
/**

0 comments on commit 5297b68

Please sign in to comment.