featurebase/sql
Seebs 21a478a728 don't look up a field by name to find out its name
If a field doesn't exist, looking up that field produces a nil,
and querying the name of a nil field fails. Don't do that. Instead,
just use the name you're looking it up by.

We could in theory return an error here, but we already handle
nonexistent fields elsewhere and checking this when we already have
checks for it seems unnecessary, I think?

Also, we add a test for this. The test is over in server/grpc_test.go
because we have infrastructure there for testing the SQL server
functionality, and you can't actually write reasonable self-contained
tests for the SQL stuff because it has no way to create a working
server.
2022-03-01 11:49:42 -06:00
..
column.go add copyright notice back in 2021-12-10 11:01:04 -06:00
ddl.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
extract.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
handler_test.go Add SQL SELECT mapping test 2022-02-28 12:17:07 -07:00
mapper.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
mapper_test.go add copyright notice back in 2021-12-10 11:01:04 -06:00
mask.go add copyright notice back in 2021-12-10 11:01:04 -06:00
model.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
query.go Add SQL SELECT mapping test 2022-02-28 12:17:07 -07:00
reduce.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
reduce_test.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
router.go add copyright notice back in 2021-12-10 11:01:04 -06:00
select.go don't look up a field by name to find out its name 2022-03-01 11:49:42 -06:00
show.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00