I have a problem using the latest version of Connector/J


the DESC of table shows:

mysql> desc tiposelo;
+----------------+-----------------+------+-----+---------+----------------+
| Field          | Type            | Null | Key | Default | Extra          |
+----------------+-----------------+------+-----+---------+----------------+
| Tp_Id          | int(4) unsigned | NO   | PRI | NULL    | auto_increment |
| Tp_Ativo       | int(1) unsigned | NO   | MUL | 0       |                |
| Tp_Descricao   | varchar(200)    | NO   | UNI |         |                |
| Tp_Equivale    | int(2) unsigned | NO   | MUL | 0       |                |
| Tp_Escopo      | varchar(200)    | NO   | MUL |         |                |
| Tp_MascaraSelo | varchar(20)     | NO   |     |         |                |
| Tp_Valor       | double(16,2)    | NO   |     | 0.00    |                |
+----------------+-----------------+------+-----+---------+----------------+
7 rows in set (0.01 sec)

mysql>


The Key Tp_id is a PRIMARY KEY.... but with connector/J

Call getPrimaryKeys() and result's in a null resultset

The Connector/J is broken ?

ps: the EXTRA clause "auto_increment" is not showed on .getIndexInfo()


MySQL 5.0.20a
Connector/J 3.1.12
Linux box
Java 1.5.0_06






--



-------------------------------------------------------------------------
++  Dyego Souza Dantas Leal   ++           Dep. Desenvolvimento   
-------------------------------------------------------------------------
              E S C R I B A   I N F O R M A T I C A
       ***        http://javacoffe.blogspot.com        ***
-------------------------------------------------------------------------
The only stupid question is the unasked one (somewhere in Linux's HowTo)
Linux registred user : #230601
--                                        ICQ   : 1647350
$ look into "my eyes" Phone : +55 041 2106-1212
look: cannot open my eyes                 Fax   : +55 041 3296-6640     
-------------------------------------------------------------------------
Reply: [EMAIL PROTECTED]

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to