Pin the version of mysqlfw, add a comment, and a check to stop postgres (#3030)

This commit is contained in:
Vinai Rachakonda
2022-03-18 11:15:31 -07:00
committed by GitHub
parent d2f21e5818
commit 774c7311f2
3 changed files with 8 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ RUN service postgresql start
# install mysql_fdw
WORKDIR /mysql-client-tests/mysql_fdw
RUN git clone https://github.com/EnterpriseDB/mysql_fdw
RUN git clone https://github.com/EnterpriseDB/mysql_fdw --branch REL-2_7_0
WORKDIR /mysql-client-tests/mysql_fdw/mysql_fdw
RUN make USE_PGXS=1 && \
make USE_PGXS=1 install

View File

@@ -63,6 +63,7 @@ void test_statement(MYSQL *con, statement *stmt) {
exit(1);
}
}
// TODO: Add test for mysql_stmt_store_result when supported
close:
if ( mysql_stmt_close(mstmt) ) {
fprintf(stderr, "failed to close stmt: %s: %s\n", stmt->query, mysql_error(con));

View File

@@ -33,6 +33,12 @@ teardown() {
cd ..
kill $SERVER_PID
rm -rf $REPO_NAME
# Check if postgresql is still running. If so stop it
active=$(service postgresql status)
if echo "$active" | grep "online"; then
service postgresql stop
fi
}
@test "go go-sql-drive/mysql test" {