Skip to content

Commit e217047

Browse files
committed
update news file
1 parent 42bae0c commit e217047

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

NEWS.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ For richer information consult the commit log on github with referenced pull req
44

55
We do not include break-fix version release in this file.
66

7+
### v2.0
8+
9+
- Properly handle various PostgreSQL to JavaScript type conversions to avoid data loss:
10+
11+
```
12+
PostgreSQL | pg@v2.0 JavaScript | pg@v1.0 JavaScript
13+
--------------------------------|----------------
14+
float4 | number (float) | string
15+
float8 | number (float) | string
16+
int8 | string | number (int)
17+
numeric | string | number (float)
18+
decimal | string | number (float)
19+
```
20+
21+
For more information see https://github.com/brianc/node-postgres/pull/353
22+
If you are unhappy with these changes you can always [override the built in type parsing fairly easily](https://github.com/brianc/node-pg-parse-float).
23+
724
### v1.3
825

926
- Make client_encoding configurable and optional

0 commit comments

Comments
 (0)