Permalink
Browse files

Handle newlines and carriage returns in column defaults or comments

Previously, using \n or \r in a column default value, column comment, index
comment, or table comment would result in "unable to generate ALTER TABLE due
to use of unsupported features". This commit updates the tengo dep to
handle these characters properly.

Fixes #48. Thank you to @jianhaiqing for the bug report!
  • Loading branch information...
evanelias committed Nov 27, 2018
1 parent aeac94e commit 30fe4eec6f0f10235ce627e8a61b9bc02b2d5d16
Showing with 14 additions and 7 deletions.
  1. +2 −2 Gopkg.lock
  2. +1 −1 skeema.go
  3. +11 −4 vendor/github.com/skeema/tengo/util.go

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -16,7 +16,7 @@ schema to the filesystem, and apply online schema changes by modifying files.`
// Globals overridden by GoReleaser's ldflags
var (
version = "1.1.1-dev"
version = "1.1.2-dev"
commit = "unknown"
date = "unknown"
)

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 30fe4ee

Please sign in to comment.