[ZEPPELIN-1988] fix condition

This commit is contained in:
Tinkoff DWH 2017-03-01 13:50:45 +05:00
parent 7636b3ff3e
commit 42ffcb7f75

View file

@ -546,7 +546,7 @@ public class JDBCInterpreter extends Interpreter {
private void executePrecode(Connection connection) throws SQLException {
String precode = getProperty(ZEPPELIN_JDBC_PRECODE_KEY);
if (StringUtils.isNotEmpty(precode)) {
if (StringUtils.isNotBlank(precode)) {
logger.info("Run SQL precode '{}'", precode);
try (Statement statement = connection.createStatement()) {
statement.execute(precode);