Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ALTER TABLE result output #100

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Conversation

DanCardin
Copy link
Contributor

@DanCardin DanCardin commented Jun 4, 2024

fwiw, I'm attempting to use fakesnow to test alembic migrations of snowflake 😬.

You already have a test for alter table, but sqlalchemy (versus the raw cursor) always calls .description on the results of queries and it was hitting similar issues to issues you've already solved with e.g. CREATE TABLE etc.

I deviated from the pattern a little bit because AlterTable constructs returned ALTERTABLE as the cmd. It seemed somewhat unfortunate to compare exactly against that, but also seemed very likely that other ALTER statements would have the same generic output.

@tekumara tekumara changed the title feat: Fake ALTER TABLE result output. fix: ALTER TABLE result output Jun 7, 2024
@tekumara
Copy link
Owner

tekumara commented Jun 7, 2024

Thanks for this. I've moved the test into test_description_create_alter_drop_table with the related tests, rather than make it a sqlalchemy specific thing.

@tekumara tekumara merged commit 3e0e236 into tekumara:main Jun 7, 2024
1 check passed
tekumara pushed a commit that referenced this pull request Jun 7, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.9.15](v0.9.14...v0.9.15)
(2024-06-07)


### Bug Fixes

* ALTER TABLE result output
([#100](#100))
([3e0e236](3e0e236))


### Chores

* **deps-dev:** bump pyright from 1.1.361 to 1.1.366
([#102](#102))
([81839a4](81839a4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: potatobot-prime[bot] <132267321+potatobot-prime[bot]@users.noreply.github.com>
@DanCardin DanCardin deleted the dc/alter_table branch June 7, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants