I think there is a bug with PreparedStatement class in
HibernateD. ddbc fails when I use a PreparedStatement. The code
below shows that. I will create an issue with HibernateD.
int main(string[] args) {
string url =
"mysql://localhost:3306/webmarx?user=webmarx_dev,password=webm@rx";
// creating Connection
auto conn = createConnection(url);
scope(exit) conn.close();
// creating Statement
auto stmt = conn.createStatement();
scope(exit) stmt.close();
PreparedStatement prepStatement =
conn.prepareStatement("SELECT * FROM preferences_wm ORDER BY id");
scope(exit) prepStatement.close();
ResultSet rs = prepStatement.executeQuery();
writeln(rs.getFetchSize());
return 0;
}