Skip to content

Commit

Permalink
shift: fix bug for unquoted col or table radondb#560
Browse files Browse the repository at this point in the history
[summary]
1. db or table name may include "-", like "a-b_db" or "a-b_tbl"
2. column name may be a keyword, like "char", "key"...
They should be quoted when send delete/update sql to backend.
[test case]
vendor/github.com/radondb/shift/shift_test
[patch codecov]
vendor/github.com/radondb/shift/shift   coverage: 76.1% of statements
  • Loading branch information
hustjieke committed Jan 10, 2020
1 parent 91a9d73 commit 8408b72
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/vendor/github.com/radondb/shift/shift/delete.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/vendor/github.com/radondb/shift/shift/shift.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 67 additions & 1 deletion src/vendor/github.com/radondb/shift/shift/shift_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/vendor/github.com/radondb/shift/shift/update.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8408b72

Please sign in to comment.