migrate icon indicating copy to clipboard operation
migrate copied to clipboard

Clickhouse - database name syntax error

Open Enity opened this issue 3 years ago • 0 comments
trafficstars

Describe the Bug We use the database names postfixed with the name of the environment, like a some_table_new-feature-env. This causes an syntax error during migration image

Steps to Reproduce Steps to reproduce the behavior:

  1. I ran migrate with the following options '-database clickhouse://localhost:9000?username=admin&password=123&database=some_table_new-feature-env&x-multi-statement=true'
  2. See error

Expected Behavior No errors

Migrate Version v4.15.2

Go Version go1.19 darwin/arm64

Additional context I think we just need to add backticks around database name.

Enity avatar Sep 02 '22 13:09 Enity