Scanonly Select Question #1140
bjongbloedt
started this conversation in
General
Replies: 1 comment
-
Ok, yeah this issue looks to be what I was looking for. Guessing this work fell of the radar when actions closed the item? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I think I might be missing something around the scan only tag. My assumption is that this tag can be used to ignore a field on update and insert, but the field should still be added to the select statement when running a NewSelect query. Is this assumption correct?
-- More details --
As an example of what I am attempting to do, the model below is based on a table that has 3 fields. One of these fields
CalculatedValue
calls a function in sql to return a calculated value of some sort, meaning it cannot be updated or inserted directly. Adding scan only correctly allows inserts and updates to work w/o the field.When I query this model using a select below, I would expect the select statement to include the
CalculatedValue
field, but it does not.From poking around a bit, the appendColumns for select here seems to use Fields, which does not include the scan only properties. This means the select query will not add the column to the raw sql, meaning no column for me. This is when I started to question if what I am doing is the intent of scan only, or if there was another path I should be looking at.
Beta Was this translation helpful? Give feedback.
All reactions