File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ jobs:
112112 if [ "${{ matrix.source }}" = "postgres" ]; then
113113 SOURCE_DSN="postgres://postgres:[email protected] :5432/test" 114114 else
115- SOURCE_DSN="mysql://root:[email protected] :3306/test?skip-tables=skip" 115+ SOURCE_DSN="mysql://root:[email protected] :3306/test?skip-tables=test. skip" 116116 fi
117117
118118 docker run -d --name myduck \
@@ -174,6 +174,19 @@ jobs:
174174 exit 1
175175 fi
176176
177+ # Verify skipped table is empty (for MySQL-compatible databases only)
178+ if [ "${{ matrix.source }}" != "postgres" ]; then
179+ # Check if skip table has any rows
180+ COUNT=$(docker exec myduck psql -t -U postgres -h 127.0.0.1 -c \
181+ "SELECT COUNT(*) FROM ${SCHEMA}.skip;" | tr -d ' ')
182+ if [ "$COUNT" -eq "0" ]; then
183+ echo "Successfully verified that skipped table exists but is empty"
184+ else
185+ echo "Error: Skipped table 'skip' contains $COUNT rows when it should be empty"
186+ exit 1
187+ fi
188+ fi
189+
177190 - name : Test replication of new data
178191 run : |
179192 # Insert new data in source
You can’t perform that action at this time.
0 commit comments