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

Test_driver failed to process escaped char in string literal #1356

Open
milkice233 opened this issue Sep 29, 2021 · 0 comments
Open

Test_driver failed to process escaped char in string literal #1356

milkice233 opened this issue Sep 29, 2021 · 0 comments

Comments

@milkice233
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.

Add the following code into TestDMLStmt of parser_test.go

{`INSERT INTO foo VALUES ("1234\\")`, true, "INSERT INTO `foo` VALUES (_UTF8MB4'1234\\')"},
  1. What did you expect to see?
    The test should pass.

  2. What did you see instead?
    The test failed, parser failed to restore the ast.

  3. What version of TiDB SQL Parser are you using?
    The test-driver, and the problem is exactly from the test-driver.
    If we switch to github.com/pingcap/tidb/types/parser_driver then the problem got fixed.

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

No branches or pull requests

1 participant