Open tigrato opened 14 hours ago
Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR.
Before a member of our team reviews your PR, I have some potential action items for you:
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
Thank you for updating your pull request.
Before a member of our team reviews your PR, I have some potential action items for you:
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
When using
sql/sem/tree.Tuple
to generate SQL statements for IN operators, the produced output is incorrect if the tuple only has one element. The output includes an extra,
.As an example, the following
Is incorrectly mapped to
('val1',)
instead of('val1')
.Because of the extra
,
, sql parsers fail to parse the input.This commit aims to fix these conditions and remove the trailing
,
.