mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Fix typo
This commit is contained in:
1 parent
ba9b4db197
commit
daab7aef2c
1 file changed
+2
-2
@@ -4455,8 +4455,8 @@ GRDB comes with a Swift version of many SQLite [built-in operators](https://sqli
|
||||
SQLite arithmetic operators are derived from their Swift equivalent:
|
||||
|
||||
```swift
|
||||
// SELECT ((temperature * 1.8) + 32) AS farenheit FROM planet
|
||||
Planet.select((temperatureColumn * 1.8 + 32).forKey("farenheit"))
|
||||
// SELECT ((temperature * 1.8) + 32) AS fahrenheit FROM planet
|
||||
Planet.select((temperatureColumn * 1.8 + 32).forKey("fahrenheit"))
|
||||
```
|
||||
|
||||
> :point_up: **Note**: an expression like `nameColumn + "rrr"` will be interpreted by SQLite as a numerical addition (with funny results), not as a string concatenation. See the `concat` operator below.
|
||||
|
||||
Reference in new issue
Block a user