Skip to content

SQL Output bot: SQL syntax error if fields is emty string (default) #2548

@sebix

Description

@sebix

By default the parameter "fields" is empty. An empty string.

The code treats this a value and uses it to generate the field name list:

key_names = self.fields
if key_names is None:
key_names = event.keys()
valid_keys = [key for key in key_names if key in event]

Instead, empty string should be treated the same as none/null

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorcomponent: bots

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions