Hi, thanks for the new version. It gets me around my previous problem -- NOT NULL Constraint.
Here's a new one. We use a database to record events during a mission, so I have many databases available to use. During connectDb() to some databases I get the following exception stack trace:
So far I put a breakpoint at BigDecimal.java:494 and looked at what variables I could see. The 'in' arg to BigDecimal is a char[] containing "NaN"! Don't know where that is coming from! I dumped the contents of the database (using Java7 and jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}) to a txt file and can find no NaN's in it.
Can you give me clues to find out what the problem is?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunatly this is the first time a problem like that is reported.
The value NaN(as float) is read by jackcess, no doubt about it. I know why it's passed as string, but I don't know why it's read by jackcess as a float NaN.
I strongly suspect your db is corrupted, may you re-try after having used the Compact and Repair MS Access tool? Please, let me know you findings.
Also, may you post along a db with a copy of the problematic table?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I found it!
There is a NAN in the database. At least in 2 of the 10 or more I tried today. Deep in a table of 10000+ rows in a file of 150MB there was a single NAN. Don't know how it got there, but it's in 2 of them.
Anyway, UCanAccess is off the hook for this, unless there may be some more gentle way to handle the situation and inform the user.
Thanks, Marco.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can fix ucanaccess to deal with bad data(and, of course, inform the user with a warning), but a fix is needed.
Inserting NaN values doesn't seem to be allowed in access.
However, I'll fix the handle of NaN asap.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, thanks for the new version. It gets me around my previous problem -- NOT NULL Constraint.
Here's a new one. We use a database to record events during a mission, so I have many databases available to use. During connectDb() to some databases I get the following exception stack trace:
So far I put a breakpoint at BigDecimal.java:494 and looked at what variables I could see. The 'in' arg to BigDecimal is a char[] containing "NaN"! Don't know where that is coming from! I dumped the contents of the database (using Java7 and jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}) to a txt file and can find no NaN's in it.
Can you give me clues to find out what the problem is?
Thanks.
Unfortunatly this is the first time a problem like that is reported.
The value NaN(as float) is read by jackcess, no doubt about it. I know why it's passed as string, but I don't know why it's read by jackcess as a float NaN.
I strongly suspect your db is corrupted, may you re-try after having used the Compact and Repair MS Access tool? Please, let me know you findings.
Also, may you post along a db with a copy of the problematic table?
I found it!
There is a NAN in the database. At least in 2 of the 10 or more I tried today. Deep in a table of 10000+ rows in a file of 150MB there was a single NAN. Don't know how it got there, but it's in 2 of them.
Anyway, UCanAccess is off the hook for this, unless there may be some more gentle way to handle the situation and inform the user.
Thanks, Marco.
I can fix ucanaccess to deal with bad data(and, of course, inform the user with a warning), but a fix is needed.
Inserting NaN values doesn't seem to be allowed in access.
However, I'll fix the handle of NaN asap.
fixed on svn trunk