Skip to content

Commit 9621131

Browse files
committed
chore: remove stale issue-tracker references from comments
Drop dangling #NNN issue-number citations across code and test comments; the surrounding prose already explains the rationale without them.
1 parent da607a0 commit 9621131

25 files changed

Lines changed: 47 additions & 49 deletions

nodedb-sql/src/error.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ pub enum SqlError {
7474
/// A positional `INSERT`/`UPSERT` `VALUES` row (no explicit column
7575
/// list) supplied more values than the target collection has declared
7676
/// columns. Binding the overflow value(s) to a synthetic `col{N}` name
77-
/// would silently store them under an unaddressable column — the same
78-
/// failure mode as #202 — so this is rejected rather than guessed
79-
/// at.
77+
/// would silently store them under an unaddressable column, so this is
78+
/// rejected rather than guessed at.
8079
#[error(
8180
"INSERT/UPSERT into '{collection}': row has {given} value(s) but only \
8281
{declared} column(s) are declared; supply an explicit column list \

nodedb-sql/src/planner/dml.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ pub fn plan_insert(ins: &ast::Insert, catalog: &dyn SqlCatalog) -> Result<Vec<Sq
142142
}
143143

144144
// Positional INSERT (no column list): bind values to the collection's
145-
// declared column order so named projections/predicates can find them
146-
// (#202). No-op for named inserts and schemaless collections.
145+
// declared column order so named projections/predicates can find them.
146+
// No-op for named inserts and schemaless collections.
147147
let columns = resolve_insert_columns(columns, &info, rows_ast)?;
148148

149149
// Vector-primary collection: bypass document encoding.
@@ -228,7 +228,7 @@ pub fn plan_upsert(ins: &ast::Insert, catalog: &dyn SqlCatalog) -> Result<Vec<Sq
228228
}
229229

230230
// Positional UPSERT (no column list): bind to the collection's declared
231-
// column order — see `plan_insert` for the full rationale (#202).
231+
// column order — see `plan_insert` for the full rationale.
232232
let columns = resolve_insert_columns(columns, &info, rows_ast)?;
233233

234234
let mut rows = convert_value_rows(&columns, rows_ast)?;
@@ -306,7 +306,7 @@ fn plan_upsert_with_on_conflict(
306306
}
307307

308308
// Positional UPSERT (no column list): bind to the collection's declared
309-
// column order — see `plan_insert` for the full rationale (#202).
309+
// column order — see `plan_insert` for the full rationale.
310310
let columns = resolve_insert_columns(columns, &info, rows_ast)?;
311311

312312
let mut rows = convert_value_rows(&columns, rows_ast)?;

nodedb-sql/src/planner/dml_helpers/insert_columns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::types::*;
1414
/// column names. Left alone, `convert_value_rows` falls back to synthetic
1515
/// `col0`, `col1`, ... names for every value (see its `col{i}` fallback
1616
/// below): the row stores fine, but named projections and WHERE predicates
17-
/// can never find it again (#202).
17+
/// can never find it again.
1818
///
1919
/// Named inserts (`columns` already non-empty) and schemaless collections
2020
/// (`info.columns` empty — there is no declared order to bind to) pass

nodedb-sql/tests/ddl_constraint_rejection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ fn not_null_and_default_accepted() {
222222
}
223223
}
224224

225-
// ── ENGINE = <name> trailing suffix (E1/#157 regression) ─────────────────────
225+
// ── ENGINE = <name> trailing suffix (E1 regression) ──────────────────────────
226226
//
227227
// A MySQL-style trailing `ENGINE = <name>` (or `ENGINE=<name>`) after the
228228
// column list must feed the same `engine` field as `WITH (engine='<name>')`,

nodedb-sql/tests/positional_insert_column_binding.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! explicit column list) must bind each value to the collection's
55
//! DECLARED column names, not synthetic `col0`, `col1`, ... placeholders.
66
//!
7-
//! The defect (#202): `INSERT INTO probe VALUES (42, 'stored?')` on
7+
//! The defect: `INSERT INTO probe VALUES (42, 'stored?')` on
88
//! `probe (id INT PRIMARY KEY, note TEXT)` stored the row under `col0`/
99
//! `col1` instead of `id`/`note`. `SELECT *` still looked correct (it
1010
//! doesn't care about names), but any named projection or `WHERE`
@@ -121,7 +121,7 @@ fn insert_rows(plan: SqlPlan) -> Vec<Vec<(String, SqlValue)>> {
121121
}
122122
}
123123

124-
/// The core regression (#202): a positional INSERT must bind its
124+
/// The core regression: a positional INSERT must bind its
125125
/// values to the DECLARED column names, not `col0`/`col1`.
126126
#[test]
127127
fn positional_insert_binds_declared_column_names() {

nodedb-types/src/columnar/column_parse.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ impl FromStr for ColumnType {
122122

123123
match upper.as_str() {
124124
// `INT4`/`INT8`/`SMALLINT`/`INT2` are PostgreSQL wire-width integer
125-
// keywords (issue #223: strict/kv `CREATE COLLECTION` rejected
126-
// them as unknown types even though they're valid aliases). They
125+
// keywords: strict/kv `CREATE COLLECTION` used to reject
126+
// them as unknown types even though they're valid aliases. They
127127
// all collapse to the same `Int64` storage variant as
128128
// `BIGINT`/`INTEGER`/`INT` — nodedb always stores integers as a
129129
// full i64. The declared width is carried separately as an
@@ -134,7 +134,7 @@ impl FromStr for ColumnType {
134134
}
135135
// `FLOAT4`/`FLOAT8`/`FLOAT32`/`DOUBLE PRECISION` are PostgreSQL
136136
// wire-width float keywords, rejected as unknown types here for
137-
// the same reason `INT4` was (issue #223). They all collapse to
137+
// the same reason `INT4` was. They all collapse to
138138
// the same `Float64` storage variant as `DOUBLE`/`REAL`/`FLOAT` —
139139
// nodedb always stores floats as a full f64. The declared width is
140140
// carried separately as a [`super::FloatWidth`], which narrows the

nodedb-types/src/columnar/column_type.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ mod tests {
286286
assert_eq!("UUID".parse::<ColumnType>().unwrap(), ColumnType::Uuid);
287287
}
288288

289-
/// `INT4`/`INT8`/`SMALLINT`/`INT2` are wire-width DDL keywords (issue
290-
/// #223: strict/kv `CREATE COLLECTION` rejected them as unknown column
291-
/// types even though they're valid PostgreSQL integer aliases). They all
289+
/// `INT4`/`INT8`/`SMALLINT`/`INT2` are wire-width DDL keywords: strict/kv
290+
/// `CREATE COLLECTION` used to reject them as unknown column
291+
/// types even though they're valid PostgreSQL integer aliases. They all
292292
/// map to the same `Int64` storage variant as `BIGINT`/`INTEGER`/`INT` —
293293
/// nodedb's columnar/strict/kv storage always keeps integers as a full
294294
/// i64; only the wire (`DdlColType`) layer narrows the advertised OID.

nodedb/src/control/gateway/router.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub fn route_plan(
6666
// Commit-time meta-ops (ResolveTxn / TransactionBatch) carry no collection
6767
// name, so their vShard cannot be derived here — the primary_vshard
6868
// fallback would silently send them to vShard 0 and durably apply the
69-
// commit batch on the wrong core (#193). They are dispatched with the
69+
// commit batch on the wrong core. They are dispatched with the
7070
// task's pre-classified `vshard_id` (see `dispatch_single_shard`), never
7171
// through the gateway.
7272
{
@@ -463,7 +463,7 @@ mod tests {
463463

464464
/// Commit-time meta-ops carry no collection name, so the router cannot
465465
/// derive their vShard — silently falling back to vShard 0 durably applies
466-
/// the commit batch on the wrong core (#193). They must be rejected here;
466+
/// the commit batch on the wrong core. They must be rejected here;
467467
/// callers dispatch them with the task's pre-classified `vshard_id`.
468468
#[test]
469469
fn commit_meta_ops_are_rejected() {

nodedb/src/control/planner/catalog_adapter/type_convert.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ fn parse_type_str(s: &str) -> SqlDataType {
250250
// Every spelling `IntWidth::from_declared_type` recognizes must appear
251251
// here too, or the column resolves to the `_ => String` default and
252252
// advertises OID 25 (text) — the exact failure that made `SMALLINT`
253-
// columns unreadable (issue #217). `parse_type_str` decides *whether*
253+
// columns unreadable. `parse_type_str` decides *whether*
254254
// the column is an integer; `IntWidth` decides *how wide*.
255255
"INT" | "INTEGER" | "INT4" | "INT8" | "INT64" | "BIGINT" | "SMALLINT" | "INT2" => {
256256
SqlDataType::Int64
@@ -276,7 +276,7 @@ mod tests {
276276
use crate::control::security::catalog::StoredCollection;
277277

278278
/// `SMALLINT`/`INT2` are valid PostgreSQL wire-width integer keywords
279-
/// (issue #217) that must resolve to the same `SqlDataType::Int64` arm as
279+
/// that must resolve to the same `SqlDataType::Int64` arm as
280280
/// `INT`/`INTEGER`/`INT4`/`INT8`/`BIGINT` — previously they were unlisted
281281
/// and fell through to the `_ => SqlDataType::String` default, which is
282282
/// what produced the wire OID 25 (text) bug for `SMALLINT` columns.

nodedb/src/control/server/native/dispatch/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use super::DispatchCtx;
3434
/// The gateway must NOT be used here: commit-time tasks carry `MetaOp` plans
3535
/// (`ResolveTxn`, `TransactionBatch`) with no named collection, so the
3636
/// gateway's router cannot derive a route for them and falls back to
37-
/// vShard 0 — durably applying the commit batch on the wrong core (#193).
37+
/// vShard 0 — durably applying the commit batch on the wrong core.
3838
pub(crate) struct NativeTxnDp<'a> {
3939
pub(crate) state: &'a SharedState,
4040
}

0 commit comments

Comments
 (0)