Skip to content

Commit 70d63c5

Browse files
authored
Integer overflow fixes (#120)
* int overflow fixes * add new test * reference pr * update readme
1 parent cd325ef commit 70d63c5

File tree

4 files changed

+413
-143
lines changed

4 files changed

+413
-143
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,15 @@ let data: PostgresData= ...
198198

199199
print(data.string) // String?
200200

201+
// Postgres only supports signed Ints.
201202
print(data.int) // Int?
202-
print(data.int8) // Int8?
203203
print(data.int16) // Int16?
204204
print(data.int32) // Int32?
205205
print(data.int64) // Int64?
206206

207-
print(data.uint) // UInt?
207+
// 'char' can be interpreted as a UInt8.
208+
// It will show in db as a character though.
208209
print(data.uint8) // UInt8?
209-
print(data.uint16) // UInt16?
210-
print(data.uint32) // UInt32?
211-
print(data.uint64) // UInt64?
212210

213211
print(data.bool) // Bool?
214212

0 commit comments

Comments
 (0)