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 168660 - TINYINT shows up as checkbox instead of integer
Summary: TINYINT shows up as checkbox instead of integer
Status: RESOLVED WONTFIX
Alias: None
Product: db
Classification: Unclassified
Component: MySQL (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 168928 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-16 08:27 UTC by drtebi
Modified: 2013-10-22 12:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of visual result showing checkbox instead of integer for TINYINT column (12.55 KB, image/png)
2009-07-16 08:31 UTC, drtebi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description drtebi 2009-07-16 08:27:59 UTC
When connected via jdbc:mysql and issuing a SELECT query for data where a table contains a column with a TINYINT value, 
the value in the visual result shows up as a checkbox. This should instead be an integer.

My column is defined as: `question_no` tinyint(1) unsigned NOT NULL

I will try to attach a screenshot of the visual result.
Comment 1 drtebi 2009-07-16 08:31:31 UTC
Created attachment 84819 [details]
Screenshot of visual result showing checkbox instead of integer for TINYINT column
Comment 2 Jiri Rechtacek 2009-07-22 09:25:11 UTC
*** Issue 168928 has been marked as a duplicate of this issue. ***
Comment 3 Jiri Rechtacek 2009-07-23 14:11:54 UTC
The problem is, that MySQL JDBC driver w/ MySQL DB (at least ver.5.0) returns JDBC Type BIT for each TINYINT(1). The IDE
cannot realize a correct type for such cases and there is no way how to workaround this. We can hope next releases the
driver will fix this problem.
Comment 4 maxym 2013-04-22 23:42:30 UTC
four years and nothing changed regarding driver?
Comment 5 matthias42 2013-04-23 16:55:40 UTC
(In reply to comment #4)
> four years and nothing changed regarding driver?

The driver is developed at mysql.com, it's not part of the netbeans project.

You can change this default:

http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-type-conversions.html

Table 20.25, third row. Just adjust the jdbc url and you are go.

Btw. this is closed "WONTFIX" what did you imply with this question?
Comment 6 cronzzz 2013-10-22 12:54:09 UTC
Guys.. Can i just disable that checkbox rendering? Because i can't differ any value more that 0 between themselves:

unchecked = 0,
checked = 1 = 2 = 3 = 4 = 5 = 6 = 7 = 8 = 9 

-_-