Skip to content

fix(dialects): escape identifiers in changeColumn and renameColumn - #18288

Draft
WikiRik wants to merge 3 commits into
mainfrom
fix/escape-change-rename-column-identifiers
Draft

WikiRik wants to merge 3 commits into
mainfrom
fix/escape-change-rename-column-identifiers

Conversation

@WikiRik

@WikiRik WikiRik commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

What & why

changeColumnQuery and renameColumnQuery hand-wrapped column names in literal quote characters (`, ", ') instead of routing them through this.quoteIdentifier(). A column name containing the dialect's identifier delimiter therefore escapes its own quoting and injects arbitrary DDL into the generated statement. Every neighbouring identifier in the same methods — including addColumnQuery right above them — was already escaped correctly, which is what makes this a bug rather than a deliberate choice.

Example, before this PR (mysql, column name id` INT, ADD COLUMN `pwned):

-- changeColumn (broken)
ALTER TABLE `Users` CHANGE `id` INT, ADD COLUMN `pwned` `id` INT, ADD COLUMN `pwned` INTEGER;
-- addColumn (already correct)
ALTER TABLE `Users` ADD `id`` INT, ADD COLUMN ``pwned` INTEGER;

Dialect status

dialect changeColumn renameColumn
mysql fixed fixed
mariadb fixed fixed
ibmi fixed fixed (+ invalid SQL, see below)
snowflake already safe fixed (+ invalid SQL, see below)
mssql already safe — quoteIdentifier doubles ] fixed (sp_rename)
db2 already safe already safe
postgres, oracle, sqlite3 already safe already safe

The "already safe" entries were checked explicitly so a reviewer does not have to re-derive them; they are deliberately left untouched.

Notes worth a reviewer's attention

  • attrBefore is escaped too. A fix that only covers the new column name would be incomplete — the previous name flows into the same statement on every affected dialect.
  • mariadb no longer extends mysql in v7, so packages/mariadb/src/query-generator.js and packages/mysql/src/query-generator.js both had to change; patching one is not enough.
  • mssql uses escapeString(), not quoteIdentifier(). sp_rename takes T-SQL string literals, so its arguments are escaped as literals. The object name is still built from quoted identifiers (N'[myTable].[oldName]'); the new name must stay unqualified, matching what renameTableQuery already does.
  • snowflake and ibmi renameColumnQuery emitted invalid SQL even for benign input — snowflake quoted identifiers with ', ibmi with `, and both appended a column definition that RENAME COLUMN does not accept. Rather than escaping what was there, both now generate ALTER TABLE <t> RENAME COLUMN <old> TO <new> like db2/postgres/oracle. ibmi also no longer emits a trailing ;, consistent with the rest of that dialect's generator. This is a correctness fix bundled with the escaping fix; it changes the generated SQL for these two dialects.
  • db2 column comments: attributeToSQL interpolated attribute.comment raw and unquoted. createTableQuery extracts and escapes that fragment itself, but addColumn/changeColumn do not, so the raw text reached the generated SQL. It is now escaped in those two contexts, mirroring how postgres handles the same split. createTableQuery output is unchanged.

Tests

New per-dialect assertions pinning the escaped output — this class of bug recurs precisely because nothing pinned it:

  • packages/core/test/unit/query-generator/change-column-query.test.ts
  • packages/core/test/unit/query-generator/rename-column-query.test.ts

Each file has a benign case (which pins the snowflake/ibmi SQL shape) and an injection case using a column name containing `, " and ] — every dialect's identifier delimiter at once — covering both attrBefore and the new name. The db2 comment case is pinned in packages/core/test/unit/dialects/db2/query-generator.test.js.

Verification

Unit tests only, no databases. For each of mysql, mariadb, mssql, db2, ibmi, snowflake, postgres and oracle: the two new files plus test/unit/sql/change-column.test.js, create-table-query, add-column-query, rename-table-query and the dialect-specific query-generator.test.js. All green. eslint and prettier clean on the changed files. The full matrix is left to CI.

Deliberately out of scope

  • mssql attributeToSQL has the same raw COMMENT ${attribute.comment} interpolation as db2 did, but every mssql caller consumes and escapes that marker, so it never reaches the generated SQL. Left alone.
  • Snowflake only supports renaming one column per ALTER TABLE ... RENAME COLUMN, yet the loop still builds a comma-joined list. That predates this PR (and the callers only ever pass one column); flagging it as a known remaining limitation rather than changing it here.
  • The COMMENT extraction regexes in db2/mssql createTableQuery are still confused by a comment containing the word COMMENT. Pre-existing, unrelated to escaping.

Created by Opus 5 with Claude Code, supervised by @WikiRik.

@coderabbitai review

Summary by CodeRabbit

  • Bug Fixes
    • Improved column change and rename SQL generation across supported database dialects.
    • Correctly escapes column names containing special characters, reducing malformed or unsafe SQL.
    • DB2 column comments now correctly escape apostrophes during column alterations.
    • Improved Snowflake rename-column SQL formatting.
    • Updated IBM i rename statements to use consistent identifier quoting.

`changeColumnQuery` and `renameColumnQuery` wrapped column names in literal
quote characters instead of routing them through `quoteIdentifier()`, so a
column name containing the dialect's identifier delimiter produced broken (and
injectable) DDL. Every neighbouring identifier in the same methods was already
escaped correctly.

Both the previous name (`attrBefore`) and the new name are now escaped.

Affected: mysql, mariadb (both `changeColumn` and `renameColumn`), ibmi
(both), snowflake (`renameColumn`) and mssql (`renameColumn`). mssql
`sp_rename` takes T-SQL string literals rather than identifiers, so its
arguments go through `escapeString()`.

snowflake and ibmi `renameColumnQuery` also emitted invalid SQL for perfectly
benign input (single quotes / backticks as identifier delimiters, and a
trailing column definition that `RENAME COLUMN` does not accept), so they now
generate `RENAME COLUMN <old> TO <new>` like the other dialects.

Finally, db2's `attributeToSQL` interpolated `attribute.comment` raw and
unquoted. `createTableQuery` post-processes and escapes that fragment itself,
but `addColumn`/`changeColumn` do not, so it is now escaped for those contexts,
mirroring what postgres does.

Co-Authored-By: Claude Opus 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b79ebc9b-ba3e-4a56-8b78-accec01625d9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Column alteration and rename query generators now use dialect-aware identifier escaping across several dialects. DB2 column comments are escaped in add/change contexts, and unit tests cover generated SQL and identifiers containing quote or backtick characters.

Changes

Column DDL generation

Layer / File(s) Summary
Dialect-specific column alteration and rename SQL
packages/core/test/unit/query-generator/*-column-query.test.ts, packages/{ibmi,mariadb,mssql,mysql,snowflake}/src/query-generator.js
Tests cover dialect-specific column changes and renames, while generators use dialect-aware identifier or string escaping and updated Snowflake and IBM i syntax.
DB2 column comment escaping
packages/db2/src/query-generator.js, packages/core/test/unit/dialects/db2/query-generator.test.js
DB2 escapes apostrophes in comments for addColumn and changeColumn contexts and verifies the generated SQL.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Suggested reviewers: sdepold

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: escaping identifiers in changeColumn and renameColumn across dialects.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Fix failing CI checks
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/escape-change-rename-column-identifiers

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@WikiRik

WikiRik commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
packages/core/test/unit/dialects/db2/query-generator.test.js (1)

54-58: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Add coverage for the addColumn context.

The implementation changed both addColumn and changeColumn comment handling, but this test only exercises changeColumn. Add an apostrophe-containing comment case for addColumn (or addColumnQuery) to prevent regressions in that path.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/core/test/unit/dialects/db2/query-generator.test.js` around lines 54
- 58, Add a separate apostrophe-containing column comment test for the
addColumn/addColumnQuery context alongside the existing changeColumn case,
asserting the generated SQL escapes the apostrophe correctly while preserving
the current changeColumn coverage.
packages/core/test/unit/query-generator/rename-column-query.test.ts (1)

3-6: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Cover apostrophe escaping in MSSQL sp_rename arguments.

The fixture tests identifier delimiters but never includes ', so the new escapeString() behavior could regress without failing this test. Add an MSSQL-specific case containing apostrophes in both old and new names, expecting doubled apostrophes in the generated string literals.

Also applies to: 29-40

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/core/test/unit/query-generator/rename-column-query.test.ts` around
lines 3 - 6, Extend the MSSQL-specific rename-column test around the existing
injectedColumn and injectedNewColumn fixtures with apostrophes in both names,
then assert that generated sp_rename string literals contain doubled apostrophes
for each value. Keep the existing delimiter coverage and verify the escaped old
and new names independently.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@packages/core/test/unit/dialects/db2/query-generator.test.js`:
- Around line 54-58: Add a separate apostrophe-containing column comment test
for the addColumn/addColumnQuery context alongside the existing changeColumn
case, asserting the generated SQL escapes the apostrophe correctly while
preserving the current changeColumn coverage.

In `@packages/core/test/unit/query-generator/rename-column-query.test.ts`:
- Around line 3-6: Extend the MSSQL-specific rename-column test around the
existing injectedColumn and injectedNewColumn fixtures with apostrophes in both
names, then assert that generated sp_rename string literals contain doubled
apostrophes for each value. Keep the existing delimiter coverage and verify the
escaped old and new names independently.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: bfe9441b-0cfb-4687-96a3-617e79e72e0d

📥 Commits

Reviewing files that changed from the base of the PR and between 040ad6d and f6aebe1.

📒 Files selected for processing (9)
  • packages/core/test/unit/dialects/db2/query-generator.test.js
  • packages/core/test/unit/query-generator/change-column-query.test.ts
  • packages/core/test/unit/query-generator/rename-column-query.test.ts
  • packages/db2/src/query-generator.js
  • packages/ibmi/src/query-generator.js
  • packages/mariadb/src/query-generator.js
  • packages/mssql/src/query-generator.js
  • packages/mysql/src/query-generator.js
  • packages/snowflake/src/query-generator.js

Db2 does not accept an inline `COMMENT` clause in `ALTER TABLE ... ADD` or
`ALTER TABLE ... ALTER COLUMN`, so `addColumn`/`changeColumn` generated SQL that
db2 rejects for any column that has a comment.

`attributeToSQL` now emits a standalone `COMMENT ON COLUMN <table>.<column> IS
<comment>` statement for those two contexts, with the table and column quoted as
identifiers and the comment escaped as a string literal, mirroring what postgres
does. `changeColumnQuery` splits that statement back out of the `ALTER TABLE`
rather than folding it into an `ALTER COLUMN` clause, which also fixes the case
where the definition is a list (e.g. a type change plus a nullability change) and
the comment used to be concatenated onto the stringified array.

`createTableQuery` still does its own parsing and escaping of the fragment and is
untouched: its output is byte-identical to before.

Co-Authored-By: Claude Opus 5 <[email protected]>
@WikiRik

WikiRik commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

Added a second commit, fix(db2): emit COMMENT ON COLUMN instead of an inline COMMENT clause, which resolves the third reviewer item in the PR body ("db2 changeColumn with a comment still emits SQL db2 doesn't accept").

What it does

attributeToSQL no longer appends an inline COMMENT '…' fragment for the addColumn/changeColumn contexts — db2 has no inline COMMENT clause in ALTER TABLE ... ADD / ALTER COLUMN. It now produces a standalone COMMENT ON COLUMN <quoted table>.<quoted column> IS <escaped literal> statement, the same shape postgres uses:

-- before
ALTER TABLE "myTable" ADD "age" INTEGER COMMENT 'Test';
ALTER TABLE "myTable" ALTER COLUMN "age" SET DATA TYPE INTEGER COMMENT 'Test';

-- after
ALTER TABLE "myTable" ADD "age" INTEGER; COMMENT ON COLUMN "myTable"."age" IS 'Test';
ALTER TABLE "myTable" ALTER COLUMN "age" SET DATA TYPE INTEGER; COMMENT ON COLUMN "myTable"."age" IS 'Test';

changeColumnQuery splits the comment statement back out instead of folding it into an ALTER COLUMN clause. That incidentally fixes the list case, where the comment used to be concatenated onto a stringified array:

-- before, for { type: INTEGER, allowNull: true, comment: 'Test' }
ALTER TABLE "myTable" ALTER COLUMN "age" SET DATA TYPE INTEGER,DROP NOT NULL COMMENT 'Test';
-- after
ALTER TABLE "myTable" ALTER COLUMN "age" SET DATA TYPE INTEGER ALTER COLUMN "age" DROP NOT NULL; COMMENT ON COLUMN "myTable"."age" IS 'Test';

createTableQuery is deliberately untouched — it still does its own parsing/escaping of the fragment. I captured its output before and after and it is byte-identical, and there is now a regression test pinning it.

Tests — six new cases in packages/core/test/unit/dialects/db2/query-generator.test.js (addColumnQuery, changeColumnQuery, the nullability-list case, a comment containing a single quote plus a DROP TABLE injection attempt for both paths, and the createTableQuery output-unchanged assertion), plus the two attributesToSQL comment expectations updated. DIALECT=db2 unit suite: 2255 passing, 0 failing. Lint and prettier clean.

One thing for a reviewer to decide. This makes the SQL correct, but db2's Query runs connection.prepare(sql), and node-ibm_db's prepare/prepareSync only executes the first statement — everything after the first ; is silently ignored (ibmdb/node-ibm_db#319). So at runtime the ALTER TABLE will apply and the COMMENT ON COLUMN will be dropped without an error, rather than the whole statement failing as it does today. Actually persisting the comment needs Db2QueryInterface to run it as a second query (or a compound BEGIN ... EXECUTE IMMEDIATE ... END block); I left that out as a separate change. Worth noting that createTableQuery has never applied column comments either — it emits them as an inert -- … SQL line comment.

I could not run this against a real db2 instance, so the COMMENT ON COLUMN syntax was verified against IBM's docs only.


Created by Opus 5 with Claude Code, supervised by @WikiRik.

The previous commit made `addColumn`/`changeColumn` emit a standalone
`COMMENT ON COLUMN` statement appended after the `ALTER TABLE`. The SQL is valid,
but it never runs: `Db2Query` calls `connection.prepare(sql)`, and node-ibm_db's
`prepare` only executes the first statement of the string it is given, discarding
everything after the first `;` without an error (ibmdb/node-ibm_db#319). So
`addColumn`/`changeColumn` with a comment succeeded and silently dropped the
comment, which is worse than the behaviour before that commit, where Db2 at least
rejected the inline `COMMENT` clause outright.

The comment is now generated on its own by `Db2QueryGenerator#commentOnColumnQuery`
and executed as a second query by `Db2QueryInterface#addColumn`/`#changeColumn`,
rather than being folded into the `ALTER TABLE` string. `attributeToSQL` no longer
produces a comment fragment for those two contexts at all, which removes the
`startsWith(definition, 'COMMENT ON COLUMN ')` sniffing `changeColumnQuery` needed
to pull the statement back out of the column definitions: that check ran over
user-controlled comment text and had to be ordered ahead of the `REFERENCES` and
`DROP ` branches to stay correct.

The two statements are not wrapped in a transaction of their own, matching how
`dropAllSchemas` and `addConstraint`/`executeTableReorg` already issue follow-up
queries in this class. They are passed the caller's `options`, so they do share a
transaction when one is supplied.

`createTableQuery` is untouched and still renders comments as an inert `-- ...`
line comment, so it continues not to apply them; the regression test pinning its
output is unchanged. Fixing that is left as a follow-up.

Verified against Db2 12.1.4.0 by reading back `SYSCAT.COLUMNS.REMARKS`: comments
set by `addColumn` and `changeColumn` (including the type + nullability case) are
now stored, a comment containing a single quote round-trips byte for byte without
being injectable, and the same operations on the parent commit leave `REMARKS`
null. The `should change the comment of column` integration test, which was
skipped for Db2 because this did not work, is enabled and passes.

Co-Authored-By: Claude Opus 5 <[email protected]>
@WikiRik

WikiRik commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

Added a third commit, fix(db2): apply column comments via a follow-up query, which resolves the reviewer question I left on the previous comment: the COMMENT ON COLUMN statement was valid SQL but never actually ran.

The problem

Db2Query calls connection.prepare(sql), and node-ibm_db's prepare executes only the first statement of the string it is given — everything after the first ; is discarded without an error (ibmdb/node-ibm_db#319). So after the previous commit addColumn/changeColumn with a comment succeeded and silently dropped the comment, which is worse than the behaviour before it, where Db2 at least rejected the inline COMMENT clause outright. I have now confirmed both halves of that against a real Db2 (see below).

What changed

The comment no longer travels with the ALTER TABLE at all. It is generated on its own by a new Db2QueryGenerator#commentOnColumnQuery(table, column, comment) and executed as a second query by Db2QueryInterface#addColumn/#changeColumn.

Where I put the split, and why. Of the three options, I moved the comment out of the generated string entirely rather than having the QueryInterface split it back apart:

  • One generator method returning two statements is not something this dialect can ever execute, so addColumnQuery/changeColumnQuery returning a single statement is the invariant that actually holds for Db2. Postgres can keep both in one string only because pg runs multi-statement simple queries; that option does not exist here.
  • It deletes the startsWith(definition, 'COMMENT ON COLUMN ') sniffing that the previous commit had to add to changeColumnQuery. That check ran over user-controlled comment text and had to be ordered ahead of the REFERENCES and DROP branches to stay correct. Not having to re-parse a formatted statement out of a list of column-definition fragments is a real simplification, and one less place where comment text is inspected as if it were SQL.
  • Issuing a follow-up queryRaw is the existing pattern in this class — dropAllSchemas and addConstraint/executeTableReorg both already do it.

Transactionality. The two statements are not wrapped in a transaction of their own; they are passed the caller's options, so they join the caller's transaction when one is supplied. That matches every other multi-statement operation in Db2QueryInterface, and avoids Db2 being the one dialect where addColumn opens an implicit transaction. Partial failure is therefore possible if the caller does not supply a transaction — a reviewer should confirm they are happy with that trade-off. I verified the transaction path does work: inside a rolled-back transaction the column and its comment both disappear.

createTableQuery is untouched and still renders column comments as an inert -- ... line comment, so it continues not to apply them. That has never worked and is out of scope here; the regression test pinning its byte-identical output is unchanged. Flagging it as a follow-up.

Verification against a real Db2

Run against icr.io/db2_community/db2:12.1.4.0, reading the comment back out of SYSCAT.COLUMNS.REMARKS rather than trusting the generated SQL:

1.  addColumn                       SYSCAT.COLUMNS.REMARKS: "How old"
2.  changeColumn                    SYSCAT.COLUMNS.REMARKS: "How old, changed"
2b. changeColumn + allowNull        SYSCAT.COLUMNS.REMARKS: "nullable now"
3.  quote injection stored value    SYSCAT.COLUMNS.REMARKS: "Te'st'; DROP TABLE \"CommentTest\"; --"
3.  round-trips byte for byte: true
3.  table still exists (not dropped): true
3b. column name containing a quote  SYSCAT.COLUMNS.REMARKS: "o'k"
4.  no comment given                SYSCAT.COLUMNS.REMARKS: null
5.  addColumn in a committed tx     SYSCAT.COLUMNS.REMARKS: "in a tx"
5b. addColumn in a rolled-back tx   SYSCAT.COLUMNS.REMARKS: "<no such column>"
6a. parent commit 18a58c2f1 SQL     SYSCAT.COLUMNS.REMARKS: null
6b. pre-18a58c2f1 inline COMMENT: "rejected: [IBM][CLI Driver][DB2/LINUXX8664] SQL0104N  An unexpected token \"'Test'\" was found following \"ent\" INTEGER COMMENT\".  Expected tokens may include:  \"<references_spec>\".  SQLSTATE=42601"
6c. this branch, same table         SYSCAT.COLUMNS.REMARKS: "Test"

Lines 6a–6c are the important ones, and they pin down all three behaviours on the same table:

  • 6a executes the exact string the parent commit generated. REMARKS is null — the COMMENT ON COLUMN was silently discarded, confirming the multi-statement problem rather than assuming it.
  • 6b executes what was generated before the parent commit. Db2 rejects it with SQL0104N.
  • 6c is this branch through the QueryInterface. The comment is stored.

Line 3 is the escaping case: a comment containing Te'st'; DROP TABLE "CommentTest"; -- is stored byte for byte and the table it names is still there afterwards.

Tests

packages/core/test/integration/query-interface/changeColumn.test.js has a should change the comment of column test that was skipped for Db2 precisely because this did not work. It is now enabled for Db2 and passes. I confirmed it is a real guard rather than a vacuous one by reverting only packages/db2/src/ to the parent commit, rebuilding, and re-running it:

1) [DB2] QueryInterface changeColumn should change the comment of column:
     AssertionError: expected null to equal 'FooBar'

The unit tests from the previous commit were rewritten for the new shape: addColumnQuery/changeColumnQuery are now pinned as not containing the comment, and commentOnColumnQuery is pinned directly, including escaping and identifier quoting (schema-qualified table, and a column name containing ").

Ran: DIALECT=db2 unit suite — 2256 passing, 0 failing. DIALECT=db2 integration test/integration/query-interface/** against the live Db2 — 69 passing, 0 failing. ESLint and Prettier clean on the four changed files. I did not run the full Db2 integration suite; the query-interface directory is the part this touches, and the rest is left to CI.

Remaining limitations

  • createTableQuery still never applies column comments (inert -- ...). Pre-existing, untouched, worth a follow-up.
  • Without a caller-supplied transaction, the ALTER TABLE and the COMMENT ON COLUMN can partially fail. Deliberate, for consistency with the rest of this class — flagging it for a decision.
  • The COMMENT extraction regexes in createTableQuery are still confused by a comment containing the word COMMENT. Pre-existing, unrelated.

Created by Opus 5 with Claude Code, supervised by @WikiRik.

official-burak added a commit to official-burak/sequelize that referenced this pull request Sep 9, 2026
Issue COMMENT ON COLUMN from Db2QueryInterface so Query._run does not re-parse SQL, matching the addColumn path in sequelize#18288.
SippieCup pushed a commit to official-burak/sequelize that referenced this pull request Sep 11, 2026
Issue COMMENT ON COLUMN from Db2QueryInterface so Query._run does not re-parse SQL, matching the addColumn path in sequelize#18288.
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