Skip to content

Commit

Permalink
[TRAVIS] Add MySQL PGP key for validation against MySQL database - se…
Browse files Browse the repository at this point in the history
…cond part
  • Loading branch information
rusher committed Jul 23, 2015
1 parent 54e624d commit af1b810
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis/before_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -x
set -e

export MYSQ_GPG_KEY=5072E1F5

remove_mysql(){
sudo service mysql stop
sudo apt-get remove --purge mysql-server mysql-client mysql-common
Expand All @@ -21,7 +23,9 @@ then
deb http://repo.mysql.com/apt/ubuntu/ precise mysql-$MYSQL_VERSION
deb-src http://repo.mysql.com/apt/ubuntu/ precise mysql-$MYSQL_VERSION
END
sudo gpg --recv-keys 5072E1F5

sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-keys $MYSQ_GPG_KEY

sudo apt-get update
sudo apt-get install mysql-server

Expand Down
6 changes: 5 additions & 1 deletion src/test/java/org/mariadb/jdbc/MultiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ private int retrieveSessionVariableFromServer(Connection tmpConnection, String v
}



/**
* CONJ-141 : Batch Statement Rewrite: Support for ON DUPLICATE KEY
* @throws SQLException
*/
@Test
public void rewriteBatchedStatementsWithQueryFirstAndLAst() throws SQLException {
Properties props = new Properties();
Expand Down Expand Up @@ -268,6 +271,7 @@ public void rewriteBatchedStatementsWithQueryFirstAndLAst() throws SQLException
if (tmpConnection != null) tmpConnection.close();
}
}

/**
* CONJ-142: Using a semicolon in a string with "rewriteBatchedStatements=true" fails
*
Expand Down

0 comments on commit af1b810

Please sign in to comment.