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

QP-8393 Fix wrong StopIndex on emitDot #80

Merged
merged 1 commit into from
Apr 29, 2024
Merged

QP-8393 Fix wrong StopIndex on emitDot #80

merged 1 commit into from
Apr 29, 2024

Conversation

Web-Engine
Copy link
Contributor

MySQL Lex 과정에서, emitDot (앞에 붙은 .을 별도 토큰으로 분리) 할 때
identifier의 StopIndex가 잘못 설정되는 문제를 해결합니다.

이를 통해 다음과 같은 쿼리의 InfferedName이 잘못 추론되지 않도록 수정합니다.

SELECT @@GLOBAL.character_set_server,@@GLOBAL.collation_server;

-- old inffered name:
-- @@GLOBAL.character_set_server, // (뒤에 ,가 붙음)
-- @@GLOBAL.collation_server

-- new inferred name:
-- @@GLOBAL.character_set_server
-- @@GLOBAL.collation_server

Copy link

@orca-security-us orca-security-us bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

Copy link
Contributor

@ryan-chae ryan-chae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM:)

@Web-Engine Web-Engine merged commit 646a0d0 into main Apr 29, 2024
21 checks passed
@Web-Engine Web-Engine deleted the fix/QP-8393 branch April 29, 2024 06:20
@Web-Engine Web-Engine added the bug Something isn't working label Apr 29, 2024
@Web-Engine Web-Engine self-assigned this Apr 29, 2024
@Web-Engine Web-Engine added this to the 9.19.0 milestone Apr 29, 2024
Web-Engine added a commit that referenced this pull request Apr 29, 2024
MySQL Lex 과정에서, emitDot (앞에 붙은 .을 별도 토큰으로 분리) 할 때
identifier의 StopIndex가 잘못 설정되는 문제를 해결합니다.

이를 통해 다음과 같은 쿼리의 InfferedName이 잘못 추론되지 않도록 수정합니다.
```sql
SELECT @@GLOBAL.character_set_server,@@GLOBAL.collation_server;

-- old inffered name:
-- @@GLOBAL.character_set_server, // (뒤에 ,가 붙음)
-- @@GLOBAL.collation_server

-- new inferred name:
-- @@GLOBAL.character_set_server
-- @@GLOBAL.collation_server
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

3 participants