Skip to content

Commit

Permalink
Merge pull request #92 from tyamagu2/bump-memefish
Browse files Browse the repository at this point in the history
[v1] Bump memefish version
  • Loading branch information
kazegusuri authored Apr 11, 2022
2 parents 3bd2465 + d6ed883 commit d397722
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.16
require (
cloud.google.com/go v0.97.0
cloud.google.com/go/spanner v1.28.0
github.com/MakeNowJust/memefish v0.0.0-20211014154734-dbfb8b28907d
github.com/MakeNowJust/memefish v0.0.0-20220411073705-82b90bc3f220
github.com/gedex/inflector v0.0.0-20170307190818-16278e9db813
github.com/google/go-cmp v0.5.6
github.com/jessevdk/go-assets v0.0.0-20160921144138-4f4301a06e15
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/MakeNowJust/heredoc/v2 v2.0.1 h1:rlCHh70XXXv7toz95ajQWOWQnN4WNLt0TdpZYIR/J6A=
github.com/MakeNowJust/heredoc/v2 v2.0.1/go.mod h1:6/2Abh5s+hc3g9nbWLe9ObDIOhaRrqsyY9MWy+4JdRM=
github.com/MakeNowJust/memefish v0.0.0-20211014154734-dbfb8b28907d h1:Leifir0NBuv7kITPOJlaXYVyKyhIGdnftANsm/OBlx4=
github.com/MakeNowJust/memefish v0.0.0-20211014154734-dbfb8b28907d/go.mod h1:1ft7DGastdJzagZDRTdbkXNqh48UTbjEOHofr2pUz90=
github.com/MakeNowJust/memefish v0.0.0-20220411073705-82b90bc3f220 h1:F01MmJMew+SEUWifsF8qc+MicQDzuhujw3HfXv09fG8=
github.com/MakeNowJust/memefish v0.0.0-20220411073705-82b90bc3f220/go.mod h1:1ft7DGastdJzagZDRTdbkXNqh48UTbjEOHofr2pUz90=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
Expand Down
6 changes: 3 additions & 3 deletions loaders/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ func NewSpannerLoaderFromDDL(fpath string) (*SpannerLoaderFromDDL, error) {
v.createIndexes = append(v.createIndexes, val)
tables[val.TableName.Name] = v
case *ast.AlterTable:
if _, ok := val.TableAlternation.(*ast.AddForeignKey); ok {
if _, ok := val.TableAlternation.(*ast.AddTableConstraint); ok {
continue
}
return nil, fmt.Errorf("stmt should be CreateTable, CreateIndex or AlterTableAddForeignKey, but got '%s'", ddl.SQL())
return nil, fmt.Errorf("stmt should be CreateTable, CreateIndex or AlterTableAddConstraint, but got '%s'", ddl.SQL())
default:
return nil, fmt.Errorf("stmt should be CreateTable, CreateIndex or AlterTableAddForeignKey, but got '%s'", ddl.SQL())
return nil, fmt.Errorf("stmt should be CreateTable, CreateIndex or AlterTableAddConstraint, but got '%s'", ddl.SQL())
}
}

Expand Down

0 comments on commit d397722

Please sign in to comment.