From bd2958546128a27f73a1f164eefb565c43e1ff92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 28 Mar 2021 10:12:55 +0200 Subject: [PATCH] Wording --- CHANGELOG.md | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99ee2aaf1..53215514d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -121,7 +121,7 @@ GRDB adheres to [Semantic Versioning](https://semver.org/), with one exception: - **New**: Added support for the `EXISTS` and `NOT EXISTS` subquery operators. See the updated [SQL Operators](README.md#sql-operators) documentation. -- **New**: `Foundation.Decimal` can now be stored in the database, and all Foundation number types can be decoded from database strings. See the [NSNumber, NSDecimalNumber, and Decimal](README.md#nsnumber-nsdecimalnumber-and-decimal) chapter for details. +- **New**: `Foundation.Decimal` can now be stored in the database, and all Foundation number types can be decoded from decimal numbers stored as strings. See the [NSNumber, NSDecimalNumber, and Decimal](README.md#nsnumber-nsdecimalnumber-and-decimal) chapter for details. ## 5.6.0 diff --git a/README.md b/README.md index d8f16d8bc..03b9f4875 100644 --- a/README.md +++ b/README.md @@ -1433,10 +1433,10 @@ Here is how GRDB supports the various data types supported by SQLite: let number = try Decimal.fetchOne(db, sql: "SELECT -100") // Decimal ``` -- All three types can decode database strings containing decimal numbers: +- All three types decode database strings as decimal numbers: ```swift - let number = try NSNumber.fetchOne(db, sql: "SELECT '10'") // NSDecimalNumber + let number = try NSNumber.fetchOne(db, sql: "SELECT '10'") // NSDecimalNumber (sic) let number = try NSDecimalNumber.fetchOne(db, sql: "SELECT '1.23'") // NSDecimalNumber let number = try Decimal.fetchOne(db, sql: "SELECT '-100'") // Decimal ```