mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-23 00:57:29 -06:00
Pin the version of mysqlfw, add a comment, and a check to stop postgres (#3030)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user