mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
[ZEPPELIN-1988] trim precode
This commit is contained in:
parent
42ffcb7f75
commit
cd46cce05e
1 changed files with 1 additions and 0 deletions
|
|
@ -547,6 +547,7 @@ public class JDBCInterpreter extends Interpreter {
|
|||
private void executePrecode(Connection connection) throws SQLException {
|
||||
String precode = getProperty(ZEPPELIN_JDBC_PRECODE_KEY);
|
||||
if (StringUtils.isNotBlank(precode)) {
|
||||
precode = StringUtils.trim(precode);
|
||||
logger.info("Run SQL precode '{}'", precode);
|
||||
try (Statement statement = connection.createStatement()) {
|
||||
statement.execute(precode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue