Skip to content

Commit

Permalink
drop old sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyang01 committed Dec 27, 2024
1 parent 3dcda64 commit 8107ee0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/bats-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
chmod +x duckdb
sudo mv duckdb /usr/local/bin
curl -LJO https://dev.mysql.com/get/Downloads/MySQL-Shell/mysql-shell_9.1.0-1debian12_amd64.deb
sudo apt-get install -y ./mysql-shell_9.1.0-1debian12_amd64.deb
- name: Build
run: go build -v

Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/mysql-copy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,14 @@ jobs:
with:
python-version: '3.13'

- name: Install system packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: mysql-client
version: 1.0

- name: Install dependencies
run: |
go get .
pip3 install "sqlglot[rs]"
curl -LJO https://dev.mysql.com/get/Downloads/MySQL-Shell/mysql-shell_9.1.0-1debian12_amd64.deb
sudo apt-get install -y ./mysql-shell_9.1.0-1debian12_amd64.deb
sudo dpkg -i -y ./mysql-shell_9.1.0-1debian12_amd64.deb
- name: Setup test data in source MySQL
run: |
Expand Down
6 changes: 6 additions & 0 deletions catalog/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,12 @@ func (t *Table) setAutoIncrementValue(ctx *sql.Context, value uint64) error {
return ErrDuckDB.New(err)
}

// Drop the old sequence
// https://github.com/duckdb/duckdb/issues/15399
// if _, err = adapter.Exec(ctx, "DROP SEQUENCE " + t.comment.Meta.Sequence); err != nil {
// return ErrDuckDB.New(err)
// }

// Update the table comment with the new sequence name
tableInfo := t.comment.Meta
tableInfo.Sequence = fullSequenceName
Expand Down

0 comments on commit 8107ee0

Please sign in to comment.