Ejemplo n.º 1
0
 internal void Close(MySqlDataReader reader)
 {
     if (statement != null)
     {
         statement.Close(reader);
     }
     ResetSqlSelectLimit();
     if (statement != null && connection != null && connection.driver != null)
     {
         connection.driver.CloseQuery(connection, statement.StatementId);
     }
     ClearCommandTimer();
 }
Ejemplo n.º 2
0
        internal void Close()
        {
            if (statement != null)
            {
                statement.Close();
            }

            // if we are supposed to reset the sql select limit, do that here
            if (resetSqlSelect)
            {
                new MySqlCommand("SET SQL_SELECT_LIMIT=-1", connection).ExecuteNonQuery();
            }
            resetSqlSelect = false;
        }