Skip to content

Commit

Permalink
Integer overflow fixes (#120)
Browse files Browse the repository at this point in the history
* int overflow fixes

* add new test

* reference pr

* update readme
  • Loading branch information
tanner0101 committed Jul 30, 2020
1 parent cd325ef commit 70d63c5
Show file tree
Hide file tree
Showing 4 changed files with 413 additions and 143 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,15 @@ let data: PostgresData= ...

print(data.string) // String?

// Postgres only supports signed Ints.
print(data.int) // Int?
print(data.int8) // Int8?
print(data.int16) // Int16?
print(data.int32) // Int32?
print(data.int64) // Int64?

print(data.uint) // UInt?
// 'char' can be interpreted as a UInt8.
// It will show in db as a character though.
print(data.uint8) // UInt8?
print(data.uint16) // UInt16?
print(data.uint32) // UInt32?
print(data.uint64) // UInt64?

print(data.bool) // Bool?

Expand Down
Loading

0 comments on commit 70d63c5

Please sign in to comment.