This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dataSource | |
String fancyFunction(String jsonInput) { | |
String result = '' | |
Clob jsonInput = dataSource.getConnection().createClob() | |
clob.setString(1, jsonInput) | |
try { | |
new Sql(dataSource).call("{? = call pkg.fancy_procedure_input_output_clob(in_json => ?)}", | |
[Sql.CLOB, | |
clob]) | |
{ jsonOutput -> result = jsonOutput?.characterStream?.text } | |
} catch (SQLException ex) { | |
log.error('Error during executing fancy procedure: ', ex) | |
} | |
return result | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment