Fixed a bug in MSqlConnection when calling .executePreparedStatement with no parameters.
authorMarco Zanon <info@marcozanon.com>
Sun, 26 Aug 2012 10:11:53 +0000 (10:11 +0000)
committerMarco Zanon <info@marcozanon.com>
Sun, 26 Aug 2012 10:11:53 +0000 (10:11 +0000)
2.x/src/java/com/marcozanon/macaco/sql/MSqlConnection.java

index 9047a905d39c2c50641d53e163b325c8a50b3ae6..b730de42421d16eb1902f00ab1f76eea71eefec2 100644 (file)
@@ -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<Object>());
     }
 
     public MSqlStatementResults executePreparedStatement(String statement, LinkedList<Object> parameters) throws MStatementSqlException {