generate table partitions replaces whitespace in primary keys with a single space. #1183
Labels
priority: p2
Medium priority. Fix may not be included in next release (e.g. minor documentation, cleanup)
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Hi,
When generate-table-partitions is invoked, it will replace whitespace in primary key literals with a single space. The issue is due to this function - _extract_where.
This function replaces whitespace with a single space. This is appropriate, except the replace function used also replaces whitespace within quoted strings. This is incorrect behavior.
We will need to parse and only do the replacement for those parts of the string that are not quoted strings.
Thanks.
Sundar Mudupalli
The text was updated successfully, but these errors were encountered: