Guess I forgot to look on my own class, I reviewed the classes that had cursor


Sent from my Verizon Wireless 4G LTE smartphone


-------- Original message --------
From: Roberto Andrade
Date:07/03/2014 19:22 (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:

> +             ResultSet result = statement.executeQuery();
> +             statement.close();
> +             return result;
> +     }
> +
> +     public static boolean execute( Connection connection, String sql ) throws SQLException
> +     {
> +             return execute( connection, sql, new Object[] {} );
> +     }
> +
> +     public static boolean execute( 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] );


Same here?

-
Reply to this email directly or view it on GitHub<https://github.com/pub-burrito/greenDAO/pull/1/files#r10402958>.