I am trying to insert a few rows to a table from an express.js controller, using knex.js:
yield knex.withSchema(MySchema).insert(something).into('MyTable');
but I get this error:
Error: parseLengthCodedNumber: JS precision range exceeded, number is >= 53 bit: "18446744073709551615"
The 'something' varible is a set of rows from another table, which have negative ids:
'-2', '552', 'something1', NULL, '-2', '1', '0000-00-00 00:00:00', '2020-03-31 14:27:32'
'-1', '552', 'something2', NULL, '-1', '0', '0000-00-00 00:00:00', '0000-00-00 00:00:00'
My database is MariaDB 10.3.21 and I'm using knex 0.12.9
Any ideas?