useAffectedRows property for MySQL #2

Closed
mtillberg opened this Issue Jan 3, 2012 · 0 comments

Projects

None yet

2 participants

@mtillberg

Add support for useAffectedRows property in MySQL connections. From the MySQL 5.1 jdbc driver source, this appears to be enabled by default, and seems to be required for JDBC compliance (see http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html). I would suggest adding the following to the constructor in org/drizzle/jdbc/internal/mysql/MySQLProtocol.java:

if(!"true".equals(info.getProperty("useAffectedRows"))) {
capabilities.add(MySQLServerCapabilities.FOUND_ROWS);
}

@krummas krummas closed this in 6831950 Jan 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment