Skip to content

fix: ON COMMIT clause not being output when using .as(query) in CREATE TABLE queries.#1748

Merged
igalklebanov merged 2 commits intomasterfrom
fix-create-table-on-commit-as-query
Mar 18, 2026
Merged

fix: ON COMMIT clause not being output when using .as(query) in CREATE TABLE queries.#1748
igalklebanov merged 2 commits intomasterfrom
fix-create-table-on-commit-as-query

Conversation

@igalklebanov
Copy link
Copy Markdown
Member

Hey 👋

closes #1629.

This PR refactors the create table visitor in the DefaultQueryCompiler to correctly output pre-as <query> clauses such as on commit.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kysely Ready Ready Preview, Comment Mar 18, 2026 7:27pm

Request Review

@igalklebanov igalklebanov added bug Something isn't working postgres Related to PostgreSQL oracle Related to Oracle internal labels Mar 18, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 18, 2026

✅ ⏱️ No benchmark changes detected following a7b6534.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 18, 2026

commit: a7b6534

@igalklebanov igalklebanov added the built-in dialect Related to a built-in dialect label Mar 18, 2026
@igalklebanov igalklebanov marked this pull request as ready for review March 18, 2026 19:32
@igalklebanov igalklebanov merged commit 23c362b into master Mar 18, 2026
31 of 32 checks passed
@igalklebanov igalklebanov deleted the fix-create-table-on-commit-as-query branch March 18, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working built-in dialect Related to a built-in dialect internal oracle Related to Oracle postgres Related to PostgreSQL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ON COMMIT clause not emitted for CREATE TABLE AS form

1 participant