dotnet / dotnet/docs

Scalar must read single field

Open
#23,597 3 comments 0 reactions 0 assignees View on GitHub
dotnet-data/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

in the Deferred transactions at https://docs.microsoft.com/en-us/dotnet/standard/data/sqlite/transactions#deferred-transactions the statement reads
readCommand.CommandText =
@"
SELECT *
FROM data
";
whereas [because intended to fetch exactly one field] it should read
readCommand.CommandText =
@"
SELECT value
FROM data
";

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 0dd1d934-08b1-ce95-b0a0-5552518976ce
* Version Independent ID: 4666a3a5-28a5-cd53-3bed-53defce207e9
* Content: [Transactions - Microsoft.Data.Sqlite](https://docs.microsoft.com/en-us/dotnet/standard/data/sqlite/transactions)
* Content Source: [docs/standard/data/sqlite/transactions.md](https://github.com/dotnet/docs/blob/main/docs/standard/data/sqlite/transactions.md)
* Product: **dotnet-data**
* GitHub Login: @bricelam
* Microsoft Alias: **bricelam**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.