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

Parser: Support SQL_BIG_RESULT, SQL_SMALL_RESULT, SQL_BUFFER_RESULT #304

Merged
merged 10 commits into from
May 29, 2019

Conversation

b41sh
Copy link
Member

@b41sh b41sh commented Apr 26, 2019

What problem does this PR solve?

Support SQL_BIG_RESULT, SQL_SMALL_RESULT, SQL_BUFFER_RESULT Syntax for TiDB Parser. Fixed #141

What is changed and how it works?

Add related syntax in parser.y
Add SQL_BIG_RESULT, SQL_SMALL_RESULT, SQL_BUFFER_RESULT in SelectStmtOpts
Update SelectStmt.Restore

Check List

Tests

  • Unit test

@CLAassistant
Copy link

CLAassistant commented Apr 26, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@kennytm kennytm left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! I'd like to see some changes.

parser.y Outdated Show resolved Hide resolved
parser_test.go Outdated Show resolved Hide resolved
@morgo
Copy link
Contributor

morgo commented Apr 26, 2019

Thank you for working on this! It is good to have this for MySQL compatibility.

Copy link
Contributor

@kennytm kennytm left a comment

Choose a reason for hiding this comment

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

LGTM

@kennytm kennytm added the status/LGT1 LGT1 label Apr 27, 2019
@morgo
Copy link
Contributor

morgo commented Apr 27, 2019

@b41sh Can you fix the formatting of parser.y. From the diff on GitHub, you can see some of the indentation is incorrect.

@b41sh
Copy link
Member Author

b41sh commented Apr 27, 2019

ok

@b41sh
Copy link
Member Author

b41sh commented Apr 29, 2019

@morgo PTAL

@morgo
Copy link
Contributor

morgo commented Apr 29, 2019

LGTM, but I am a product manager :-)

PTAL @lysu @tiancaiamao

@b41sh
Copy link
Member Author

b41sh commented May 8, 2019

PTAL @crazycs520

@tiancaiamao
Copy link
Collaborator

LGTM
Please address conflicts @b41sh

@tiancaiamao tiancaiamao added status/LGT2 LGT2 and removed status/LGT1 LGT1 labels May 29, 2019
@codecov

This comment has been minimized.

1 similar comment
@codecov
Copy link

codecov bot commented May 29, 2019

Codecov Report

Merging #304 into master will decrease coverage by 0.04%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #304      +/-   ##
=========================================
- Coverage   53.35%   53.3%   -0.05%     
=========================================
  Files          31      31              
  Lines        6524    6530       +6     
=========================================
  Hits         3481    3481              
- Misses       2704    2707       +3     
- Partials      339     342       +3
Impacted Files Coverage Δ
parser.go 70.58% <ø> (ø) ⬆️
ast/misc.go 18.3% <ø> (ø) ⬆️
misc.go 96.42% <ø> (ø) ⬆️
ast/dml.go 41.96% <0%> (-0.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f64799c...bf7dcce. Read the comment docs.

tiancaiamao pushed a commit to tiancaiamao/parser that referenced this pull request Apr 27, 2021
…ingcap#304)

* Support SQL_BIG_RESULT, SQL_SMALL_RESULT, SQL_BUFFER_RESULT

* update test case

* code formatting

* word wrap
lyonzhi pushed a commit to lyonzhi/parser that referenced this pull request Apr 25, 2024
…ingcap#304)

* Support SQL_BIG_RESULT, SQL_SMALL_RESULT, SQL_BUFFER_RESULT

* update test case

* code formatting

* word wrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support SQL_BIG_RESULT, SQL_SMALL_RESULT, SQL_BUFFER_RESULT
5 participants