<commit_before># MyBatis pagination support for MySQL 5.x

[![Build Status](https://travis-ci.org/andromedarabbit/mybatis-pagination.svg?branch=develop)](https://travis-ci.org/andromedarabbit/mybatis-pagination)

MyBatis comes with pagination support. Using `RowBounds` plugin, you can limit the result set(see [Supplied Plugins](http://mybatis.org/generator/reference/plugins.html)).

However, it does not work the way you might think it should. Run the following code block:

```java
@Autowired
private MysqlUserDao dao;

@Test
public void testGetUsers() {
    final int offset = 1;
    final int limit = 10;

    MysqlUserExample example = new MysqlUserExample();
    example.createCriteria()
            .andHostIsNotNull()
            ;

    RowBounds bounds = new RowBounds(offset, limit);
    List<MysqlUser> users = dao.getUsers(example, bounds);
    assertThat(users, notNullValue());
}<commit_msg>Use Travis CI banner for `master` branch<commit_after># MyBatis pagination support for MySQL 5.x

[![Build Status](https://travis-ci.org/andromedarabbit/mybatis-pagination.svg?branch=master)](https://travis-ci.org/andromedarabbit/mybatis-pagination)

MyBatis comes with pagination support. Using `RowBounds` plugin, you can limit the result set(see [Supplied Plugins](http://mybatis.org/generator/reference/plugins.html)).

However, it does not work the way you might think it should. Run the following code block:

```java
@Autowired
private MysqlUserDao dao;

@Test
public void testGetUsers() {
    final int offset = 1;
    final int limit = 10;

    MysqlUserExample example = new MysqlUserExample();
    example.createCriteria()
            .andHostIsNotNull()
            ;

    RowBounds bounds = new RowBounds(offset, limit);
    List<MysqlUser> users = dao.getUsers(example, bounds);
    assertThat(users, notNullValue());
}
{'fraction_non_alphanumeric': 0.10869565217391304, 'fraction_numerical': 0.004347826086956522, 'mean_word_length': 4.275071633237823, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3536295', 'n_tokens_mistral': 580, 'n_tokens_neox': 557, 'n_words': 158}