Commit 5fb3b4da authored by Nico Mack's avatar Nico Mack

Fixed a bug in retrieveScalar method. Variable value was no longer

assigned
parent 3b63c86d
......@@ -451,6 +451,7 @@ public class SqlExecutor extends Executor {
if (index >= 0) {
Object[] values = columnValues.get(0);
Object value = ((index >= 0) && (index < values.length)) ? values[index] : null;
variable.setValueFromObject(value);
if (LOGGER.isInfoEnabled()) {
String rendered = (value != null) ? StringUtils.abbreviate(value.toString(), ABBREVIATE_LENGTH) : "NULL";
LOGGER.info(Executor.RESULT_TEMPLATE_PLAIN, variable.getName(), rendered); // $NON-NLS-1$
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment