Menu

Jackcess addRow() with Long number truncated to Integer max size 2,147,483,647

Help
2014-02-24
2014-02-25
  • Marco Arigoni

    Marco Arigoni - 2014-02-24

    I am trying to insert a very big Long inside an Access database, whatever I use however (Integer, Long, BigDecimal) the number inside the Access table either becomes a meaningless negative number or is truncated to Integer max size of 2,147,483,647.

    My access database however when used within Windows can correctly store and modify numbers greater than 2,147,483,647.

    My code currently is as follows:

    long l = 3791318595L;
    myTable.addRow(l,"testing");

     
  • James Ahlborn

    James Ahlborn - 2014-02-25

    A "long integer" in an Access database is a Java Integer (not a Long). it's confusing i know.

     

Log in to post a comment.

MongoDB Logo MongoDB