Commit 20224ae
committed
docs: correct fetch/proj behavior for hidden columns; tighten error messages
Per Milagros's review on PR #162: the matrix rows for fetch("_name") and
proj("_name") said "Included" but the actual behavior is "Rejected" —
both route through proj()'s heading.names check (visible-only list at
heading.py:236-237), which raises DataJointError. The integration test
tests/integration/test_hidden_job_metadata.py:170-172 confirms this
constraint by dropping to raw SQL via conn.query() to inspect hidden
columns.
The "Inspecting platform-managed hidden columns" example block had the
same bug — the proj()/fetch1() examples would raise as written. Replaced
with the raw-SQL pattern that mirrors the integration test.
Also tightened the insert/update1 row: the previous parenthetical
"(Field not in table heading)" was an inexact paraphrase. insert/insert1
raise KeyError("`_name` is not in the table heading") (table.py:1424);
update1 raises DataJointError("Attribute `_name` not found.")
(table.py:514). Split into two rows with the verbatim messages.1 parent 832c95f commit 20224ae
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
| 189 | + | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| |||
0 commit comments