Skip to content

Commit

Permalink
[travis] correcting travis installation
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Feb 20, 2017
1 parent 3f3836c commit c6bd247
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis/before_test.sh
Expand Up @@ -3,6 +3,13 @@
set -x
set -e

remove_mysql(){
sudo service mysql stop
sudo apt-get -qq autoremove --purge mysql-server mysql-client mysql-common
sudo rm -Rf /etc/mysql||true
sudo rm -Rf /var/lib/mysql||true
}

if [ "$TYPE" == "MAXSCALE" ]
then
#install maxscale
Expand All @@ -16,6 +23,8 @@ then
sudo sed -i 's|port=4006|port=4006\naddress=localhost|g' /etc/maxscale.cnf
fi

remove_mysql

if [ -n "$AURORA" ]
then
# AURORA tests doesn't need an installation
Expand Down
Expand Up @@ -62,7 +62,7 @@ public class MariaDbStatement extends BaseStatement implements Statement {
*/
public MariaDbStatement(MariaDbConnection connection, int resultSetScrollType) {
super(connection, resultSetScrollType);
this.results = new Results(this);
this.results = new Results(this, connection.getAutoIncrementIncrement());
}

}

0 comments on commit c6bd247

Please sign in to comment.