groovy

mysql: class of result columns from "show full processlist" is byte array, should be java.lang.String

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.1-rc-1
  • Fix Version/s: 1.5.2
  • Component/s: SQL processing
  • Labels:
    None
  • Environment:
    OS: SUSE Linux Enterprise Desktop 10 SP1
    java: 1.6.0_02 from Sun
    Connector/J: mysql-connector-java-5.0.8-bin.jar
    MySQL: 5.0.45
  • Testcase included:
    yes
  • Number of attachments :
    1

Description

Using groovy.sql.Sql.eachRow("show full processlist"), the class of most of the result columns used to be java.lang.String. Now (as of mysql-connector-java-5.0.8-bin.jar), the class of most of the result columns is byte array.

Setting priority to Major since this used to work correctly (using mysql-connector-java-5.0.7-bin.jar, for example).

Test case is attached. This test passes with mysql-connector-java-5.0.7-bin.jar but fails with mysql-connector-java-5.0.8-bin.jar.

Activity

Hide
Paul King added a comment -

I can reproduce the results but it seems like a change in the mysql server or driver rather than anything in Groovy. See here:
http://osdir.com/ml/db.mysql.java/2006-02/msg00042.html

The workaround from Groovy is to do something like: new String(it.Command) for such fields.

Show
Paul King added a comment - I can reproduce the results but it seems like a change in the mysql server or driver rather than anything in Groovy. See here: http://osdir.com/ml/db.mysql.java/2006-02/msg00042.html The workaround from Groovy is to do something like: new String(it.Command) for such fields.
Hide
Vance Baarda added a comment -

Thanks for the link, Paul. I had searched for info like this, but not hard enough, obviously.

Regards,

Vance

Show
Vance Baarda added a comment - Thanks for the link, Paul. I had searched for info like this, but not hard enough, obviously. Regards, Vance
Hide
Paul King added a comment -

close off release 1.5.4

Show
Paul King added a comment - close off release 1.5.4

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: