@@ -859,44 +859,47 @@ class UtplsqlDao {
859859 * @throws DataAccessException if there is a problem
860860 */
861861 def String htmlCodeCoverage (List<String > pathList , List<String > schemaList , List<String > includeObjectList , List<String > excludeObjectList ) {
862- enableDbmsOutput
863862 val sql = ' ' '
864- BEGIN
865- ut.run(
866- a_paths => ut_varchar2_list(
867- «FOR path : pathList SEPARATOR ", "»
868- ' «path»'
869- «ENDFOR»
870- ),
871- «IF schemaList.size > 0»
872- a_coverage_schemes => ut_varchar2_list(
873- «FOR schema : schemaList SEPARATOR ", "»
874- ' «schema»'
875- «ENDFOR»
876- ),
877- «ENDIF»
878- «IF includeObjectList.size > 0»
879- a_include_objects => ut_varchar2_list(
880- «FOR includeObject : includeObjectList SEPARATOR ", "»
881- ' «includeObject»'
882- «ENDFOR»
883- ),
884- «ENDIF»
885- «IF excludeObjectList.size > 0»
886- a_exclude_objects => ut_varchar2_list(
887- «FOR excludeObject : excludeObjectList SEPARATOR ", "»
888- ' «excludeObject»'
889- «ENDFOR»
890- ),
891- «ENDIF»
892- a_reporter => ut_coverage_html_reporter()
893- );
894- END;
863+ SELECT column_value
864+ FROM table(
865+ ut.run(
866+ a_paths => ut_varchar2_list(
867+ «FOR path : pathList SEPARATOR ", "»
868+ ' «path»'
869+ «ENDFOR»
870+ ),
871+ «IF schemaList.size > 0»
872+ a_coverage_schemes => ut_varchar2_list(
873+ «FOR schema : schemaList SEPARATOR ", "»
874+ ' «schema»'
875+ «ENDFOR»
876+ ),
877+ «ENDIF»
878+ «IF includeObjectList.size > 0»
879+ a_include_objects => ut_varchar2_list(
880+ «FOR includeObject : includeObjectList SEPARATOR ", "»
881+ ' «includeObject»'
882+ «ENDFOR»
883+ ),
884+ «ENDIF»
885+ «IF excludeObjectList.size > 0»
886+ a_exclude_objects => ut_varchar2_list(
887+ «FOR excludeObject : excludeObjectList SEPARATOR ", "»
888+ ' «excludeObject»'
889+ «ENDFOR»
890+ ),
891+ «ENDIF»
892+ a_reporter => ut_coverage_html_reporter()
893+ )
894+ )
895895 ' ' '
896- jdbcTemplate. update(sql)
897- val ret = getDbmsOutput
898- disableDbmsOutput
899- return ret
896+ val lines = jdbcTemplate. queryForList(sql, String )
897+ val sb = new StringBuilder
898+ for (line : lines. filter[it !== null ]) {
899+ sb. append(line)
900+ sb. append(" \n " )
901+ }
902+ return sb. toString
900903 }
901904
902905 /**
0 commit comments