mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
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. |
||
|---|---|---|
| .. | ||
| column.go | ||
| ddl.go | ||
| extract.go | ||
| handler_test.go | ||
| mapper.go | ||
| mapper_test.go | ||
| mask.go | ||
| model.go | ||
| query.go | ||
| reduce.go | ||
| reduce_test.go | ||
| router.go | ||
| select.go | ||
| show.go | ||