Permalink
Browse files

Merge pull request #577 from stevenschlansker/script-getstatements

Expose Script.getStatements()
  • Loading branch information...
2 parents 3fe1480 + b233232 commit fb79b547ed433e372df400ae513c683fa06d6d00 Matthew Hall committed on GitHub Nov 25, 2016
Showing with 5 additions and 1 deletion.
  1. +1 −0 RELEASE_NOTES
  2. +4 −1 src/main/java/org/skife/jdbi/v2/Script.java
View
@@ -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
@@ -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);

0 comments on commit fb79b54

Please sign in to comment.