Skip to content

Commit

Permalink
Remove wrong word (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
Intruder66 committed Jun 5, 2024
1 parent 47c95dc commit 7266d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/checks/avoid-default-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### What is the intent of the check?

Default table keys (declared by the `WITH DEFAULT KEY` clause in a table definition) can lead to obscure mistakes because they ignore numeric data types and they make it the intent of the key unclear. `SORT` and `DELETE ADJACENT` statements without explicit field list will resort to the primary key of the internal table, which in the case of default keys can lead to unexpected results, in particular in combination with `READ TABLE ... BINARY SEARCH` statements.
Default table keys (declared by the `WITH DEFAULT KEY` clause in a table definition) can lead to obscure mistakes because they ignore numeric data types and they make the intent of the key unclear. `SORT` and `DELETE ADJACENT` statements without explicit field list will resort to the primary key of the internal table, which in the case of default keys can lead to unexpected results, in particular in combination with `READ TABLE ... BINARY SEARCH` statements.

Therefore, this check searches for internal table definitions that declare a default table key.

Expand Down

0 comments on commit 7266d08

Please sign in to comment.