node.js - Mysql returning incorrect bigint result by one, very strange error -


i don't know going on here. have database table looks this:

enter image description here

with data:

enter image description here

when run query select * game id = 4 in phpmyadmin result expected:

enter image description here

but when make query on through rest api (where gameid = 4)

var query = connection.query("select * game id = ? ",[game.gameid],function(err,rows){  

i result

enter image description here

where adminid reason has been subtracted one. haven't clue going on. have tried dropping table , setting up, has experienced before? or know wrong? it's pretty frustrating! thanks

the maximum integer javascript can safely represent number.max_safe_integer, 2^53 - 1. value greater that, causing bits lost.

node-mysql has supportbignumbers , bignumberstrings options parse bigints strings.

var connection = mysql.createconnection({supportbignumbers: true, bignumberstrings: true}); 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -