maria-developers team mailing list archive
Mailing list archive
Re: Java Connector Coding till 5th June
> -----Original Message-----
> From: Maria-developers [mailto:maria-developers-
> bounces+wlad=montyprogram.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of
> Puneet Dewan
> Sent: Donnerstag, 5. Juni 2014 07:43
> To: maria-developers@xxxxxxxxxxxxxxxxxxx
> Subject: [Maria-developers] Java Connector Coding till 5th June
> 7.Then I saw that there is a class MySqlServerSidePreparedStatement.java,
> Initially I coded the prepareStatement() ,close(),and execute() in that class
> But after (Code review) discussion with Massimo, we donot need to use that
I'm curious. What were the arguments for not using this class? That class MySqlServerSidePreparedStatement.java was created for exactly the purpose of implementing server-side prepared statements (user could choose implementation based on parameter, e.g userServerPrepStmts like in Connector/J).
If the idea is that people do not need client-side prepared statements, and server-side the only correct way to go, this is, based on my experience, incorrect. Often, people would want parametrized statements without the overhead of P_S (prepare, execute, close).
> Instead use MySqlPreparedStatement.java to do the same work.So made
> changes accordingly.