Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.3.0, 1.3.2, 1.3.1
Description
import java.sql.*;
import org.junit.Assert;
import org.junit.Test;
public class Main {
@Test
public void test() throws ClassNotFoundException, SQLException {
Class.forName("org.mariadb.jdbc.Driver");
try (Connection connection = DriverManager.getConnection("jdbc:mariadb://localhost/test", "root", "root")) {
try {
connection.prepareStatement("CREATE TABLE table1(column1 int)").execute();
connection.prepareStatement("INSERT INTO table1(column1) VALUES (2)").execute();
try (PreparedStatement ps = connection.prepareStatement("select column1 from table1 limit ?")) {
ps.setInt(1, 20);
ResultSet rs = ps.executeQuery();
while (rs.next())
}
} finally
}
}
}
Attachments
Issue Links
- causes
-
CONJ-243 ResultSet.getString returns '1' on BOOLEAN-false values.
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Labels | tests |
Status | Open [ 1 ] | In Progress [ 3 ] |
Fix Version/s | 1.3.3 [ 20801 ] |
Component/s | Other [ 12201 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 72741 ] | MariaDB v4 [ 134818 ] |
Correction done for version 1.3.3 for the end of this week.
2 commits :
https://github.com/MariaDB/mariadb-connector-j/commit/455f36f71556bbdc11b04753f388116c72b3fca4
and https://github.com/MariaDB/mariadb-connector-j/commit/fce8e4c5bbcacca27380ee04e2151364a44aab4a
Travis result :
https://travis-ci.org/MariaDB/mariadb-connector-j/builds/93970103