Skip to content

fix(spanner/spansql) Add tests for INSERT parsing, fix INTO bug#6303

Merged
rahul2393 merged 1 commit intogoogleapis:mainfrom
jamesrom:fix/dml-insert-parsing
Jul 5, 2022
Merged

fix(spanner/spansql) Add tests for INSERT parsing, fix INTO bug#6303
rahul2393 merged 1 commit intogoogleapis:mainfrom
jamesrom:fix/dml-insert-parsing

Conversation

@jamesrom
Copy link
Copy Markdown
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 July 4, 2022 09:06
@conventional-commit-lint-gcf
Copy link
Copy Markdown

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
Copy Markdown

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.

@jamesrom jamesrom force-pushed the fix/dml-insert-parsing branch from 60a2720 to d67c529 Compare July 4, 2022 12:19
Fix bug where 'INSERT' statement was generated incorrectly
@jamesrom jamesrom force-pushed the fix/dml-insert-parsing branch from d67c529 to 7d113af Compare July 4, 2022 12:24
@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.

3 participants