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(spanner/spansql) Add tests for INSERT parsing, fix INTO bug #6303

Merged
merged 1 commit into from Jul 5, 2022

Conversation

jamesrom
Copy link
Contributor

@jamesrom jamesrom commented Jul 4, 2022

#6148 introduced a bug in the way INSERT statements are produced.

Currently, INSERT statements produced by spansql are invalid, for example:

INSERT Singers INTO ...

Where the correct form should be:

INSERT INTO Singers ...
-- or
INSERT Singers ...

The first form (INSERT INTO) has been chosen as it aligns with the documented examples.

This PR addresses the issue and adds necessary tests.

@jamesrom jamesrom requested review from a team as code owners July 4, 2022 09:06
@conventional-commit-lint-gcf
Copy link

conventional-commit-lint-gcf bot commented Jul 4, 2022

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Jul 4, 2022
@google-cla
Copy link

google-cla bot commented Jul 4, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Fix bug where 'INSERT' statement was generated incorrectly
@rahul2393 rahul2393 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 5, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 5, 2022
@rahul2393 rahul2393 merged commit 0d19fb5 into googleapis:main Jul 5, 2022
@jamesrom jamesrom deleted the fix/dml-insert-parsing branch July 11, 2022 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants