Commit 017eebd
committed
Exclude full-text search columns from entity queries
- Remove `tsvector` columns from `SELECT` clauses in entity queries
- Filter out full-text search columns from the list of selected columns
Full-text search columns (`tsvector` type) are used for indexing and
efficient text searching, but they are not part of the entity's data
model and are not meant to be directly queried or returned. This fixes a
bug where trying to load a tsvector column fails, as diesel does not
natively have tsvector support, and we don't explicitly handle the type
in `relational::value::OidValue::from_sql`.1 parent b9e1c5f commit 017eebd
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
270 | 274 | | |
271 | 275 | | |
272 | 276 | | |
| |||
346 | 350 | | |
347 | 351 | | |
348 | 352 | | |
349 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
350 | 357 | | |
351 | 358 | | |
352 | 359 | | |
| |||
0 commit comments