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

add lower_case_table_names in gaussdb_mysql #998

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

Jason-Zhang9309
Copy link
Collaborator

What this PR does / why we need it:

add lower_case_table_names in gaussdb_mysql

Which issue this PR fixes:
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)
fixes #xxx

Special notes for your reviewer:

Release note:


PR Checklist

  • Tests added/passed.
  • Documentation updated.
  • Schema updated.

Acceptance Steps Performed

make testacc TEST='./huaweicloud' TESTARGS='-run TestAccGaussDBInstance_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./huaweicloud -v -run TestAccGaussDBInstance_basic -timeout 360m -parallel 4
=== RUN   TestAccGaussDBInstance_basic
=== PAUSE TestAccGaussDBInstance_basic
=== CONT  TestAccGaussDBInstance_basic
--- PASS: TestAccGaussDBInstance_basic (766.72s)
PASS
ok      github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud       766.838s

@@ -294,6 +298,8 @@ func resourceGaussDBInstanceCreate(d *schema.ResourceData, meta interface{}) err
}
}

lowerCaseTableNames := d.Get("lower_case_table_names").(int)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the default value will be 0 while it defaults to 1 in the docs, please check this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -73,6 +73,10 @@ The following arguments are supported:
* `enterprise_project_id` - (Optional, String, ForceNew) Specifies the enterprise project id. Required if EPS enabled.
Changing this parameter will create a new resource.

* `lower_case_table_names` - (Optional, Bool) Whether the kernel table name is case sensitive.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest to name it as table_name_case_sensitivity

@ShiChangkuo ShiChangkuo merged commit 2f0ad02 into huaweicloud:master Mar 24, 2021
@Jason-Zhang9309 Jason-Zhang9309 deleted the dev-gaussdb branch March 24, 2021 09:01
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

Successfully merging this pull request may close these issues.

2 participants