Skip to content

Commit

Permalink
Expose Script.getStatements()
Browse files Browse the repository at this point in the history
Fixes #575
  • Loading branch information
Steven Schlansker committed Nov 25, 2016
1 parent 3fe1480 commit b233232
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE_NOTES
@@ -1,6 +1,7 @@
2.78
- @BindIn: fix handling of empty lists on Postgres
- clear SqlObject ThreadLocals on close, fixes leak on e.g. webapp reload
- expose Script.getStatements()

2.77
- Improved BindIn functionality: can now process Iterables and arrays/varargs
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/org/skife/jdbi/v2/Script.java
Expand Up @@ -63,7 +63,10 @@ public void executeAsSeparateStatements() {
}
}

private List<String> getStatements() {
/**
* Locate the Script and split it into statements.
*/
public List<String> getStatements() {
final String script;
try {
script = locator.locate(name, statementContext);
Expand Down

0 comments on commit b233232

Please sign in to comment.