This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 153824 - Unable to delete due to Valid Range error
Summary: Unable to delete due to Valid Range error
Status: RESOLVED DUPLICATE of bug 239274
Alias: None
Product: db
Classification: Unclassified
Component: MySQL (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-25 05:33 UTC by dynamiccoder
Modified: 2014-10-12 12:35 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
An example table with an out of bounds value (1.08 KB, text/plain)
2008-11-25 05:34 UTC, dynamiccoder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dynamiccoder 2008-11-25 05:33:09 UTC
Somewhat a bug. Mostly a usability issue

Was getting a strange result in my application from what seemed to be a phantom row in the database left over from
debugging. When I queried the table using the SQL explorer it wasn't showing the odd row.

Turns out the SQL Explorer was showing the error (which I didn't notice at first)
'Error code 0, SQL state 22003: '4.294967295E9' in column '2' is outside valid range for the datatype INTEGER.'
and not displaying any information about the row at all. Had to use a different tool to find the offending row and
modify it.

Would be nice if it output the row in the main list, and allowed me to modify it there (showing the error message below)
Or made the error message include the index of the row so I would have the information to construct a sql query to
modify it.

WinXP
MySQL 5.0.51a
jdbc connector used on mysql://localhost:3306
Comment 1 dynamiccoder 2008-11-25 05:34:34 UTC
Created attachment 74112 [details]
An example table with an out of bounds value
Comment 2 Jiri Rechtacek 2009-10-16 14:09:52 UTC
Reassigned to new owner.
Comment 3 matthias42 2014-10-12 12:35:30 UTC
Ok - Problem: the db reported datatype integer, it was forgotten, that some databases support unsigned datatypes, than a DB integer does not fit into a java integer in this case:

Real Value:        4294967295
Integer.MAX_VALUE: 2147483647

With the change from 239274 netbeans detects this and switches to a long value.

*** This bug has been marked as a duplicate of bug 239274 ***