From: Marco Zanon Date: Sun, 26 Aug 2012 10:11:53 +0000 (+0000) Subject: Fixed a bug in MSqlConnection when calling .executePreparedStatement with no parameters. X-Git-Tag: SVN-to-Git~123 X-Git-Url: https://gitweb.marcozanon.com/?a=commitdiff_plain;h=310d98424b56118549d8556a0f54ab74eac91bd1;p=Macaco Fixed a bug in MSqlConnection when calling .executePreparedStatement with no parameters. --- diff --git a/2.x/src/java/com/marcozanon/macaco/sql/MSqlConnection.java b/2.x/src/java/com/marcozanon/macaco/sql/MSqlConnection.java index 9047a90..b730de4 100644 --- a/2.x/src/java/com/marcozanon/macaco/sql/MSqlConnection.java +++ b/2.x/src/java/com/marcozanon/macaco/sql/MSqlConnection.java @@ -196,7 +196,7 @@ public class MSqlConnection extends MObject { /* Statements */ public MSqlStatementResults executePreparedStatement(String statement) throws MStatementSqlException { - return this.executePreparedStatement(statement, null); + return this.executePreparedStatement(statement, new LinkedList()); } public MSqlStatementResults executePreparedStatement(String statement, LinkedList parameters) throws MStatementSqlException {