Yes :( I missed that one


Sent from my Verizon Wireless 4G LTE smartphone


-------- Original message --------
From: Roberto Andrade
Date:07/03/2014 19:21 (GMT-03:00)
To: pub-burrito/greenDAO
Cc: Marlus Clayton Rocha Silva
Subject: Re: [greenDAO] Jdbc abstraction (#1)


In DaoCore/src/de/greenrobot/dao/internal/JDBCUtils.java:

> +import java.sql.ResultSet;
> +import java.sql.SQLException;
> +
> +public class JDBCUtils
> +{
> +     public static ResultSet query( Connection connection, String sql ) throws SQLException
> +     {
> +             return query( connection, sql, new Object[] {} );
> +     }
> +
> +     public static ResultSet query( Connection connection, String sql, Object... parameters ) throws SQLException
> +     {
> +             PreparedStatement statement = connection.prepareStatement( sql );
> +             for ( int i = 0; i < parameters.length; i++ )
> +             {
> +                     statement.setObject( i, parameters[i] );


This should start at 1, no?

-
Reply to this email directly or view it on GitHub<https://github.com/pub-burrito/greenDAO/pull/1/files#r10402952>.