Skip to content

Commit 5c2c502

Browse files
highlighted known incompatibility with node-mysql
1 parent ec4ed3e commit 5c2c502

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ con.query({ sql: 'select 1 as foo, 2 as foo', rowsAsArray: true }, function(err,
248248
249249
MySQL2 is mostly API compatible with [Node MySQL][node-mysql]. You should check their API documentation to see all available API options.
250250
251-
If you find any incompatibility with [Node MySQL][node-mysql], Please report via Issue tracker. We will fix reported incompatibility on priority basis.
251+
One known incompatibility is that `sum` and `avg` results are returned as strings rather than numbers. This is deliberate to avoid loss of precision - see https://github.com/sidorares/node-mysql2/issues/935.
252+
253+
If you find any other incompatibility with [Node MySQL][node-mysql], Please report via Issue tracker. We will fix reported incompatibility on priority basis.
252254
253255
## Documentation
254256

0 commit comments

Comments
 (0)