fix scalar_sql not to return empty string for zero