Skip to content

Ensure tuple size matches INSERT column lists.#93

Closed
amw-zero wants to merge 1 commit into
mainfrom
alex.weisberger/dbmon-6377-benchmarker-rewrite-failures
Closed

Ensure tuple size matches INSERT column lists.#93
amw-zero wants to merge 1 commit into
mainfrom
alex.weisberger/dbmon-6377-benchmarker-rewrite-failures

Conversation

@amw-zero

@amw-zero amw-zero commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

The benchmarker is finding cases where our obfuscate_and_normalize procedure leads to un-executable queries. One example of this is that we do not respect the number of columns in an INSERT statement when generating parameter lists.

For example we can produce statements of the form:

INSERT INTO tbl1 (c1,  c2, c3) VALUES (?, ?)

Here, the tuple value only has 2 column placeholders, whereas the column list expects 3 columns. This query is un-executable. Interestingly, we had many test cases that encoded this behavior, even though the behavior is wrong.

@amw-zero amw-zero requested a review from a team as a code owner April 6, 2026 15:29
@amw-zero amw-zero closed this Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant