Permalink
Browse files

Expose Script.getStatements()

Fixes #575
1 parent 3fe1480 commit b2332323996590869456ded19b59f284f00323a9 @stevenschlansker stevenschlansker committed 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 b233232

Please sign in to comment.