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

Doesn't work table insert sample with comments #8

Open
kotaroyamazaki opened this issue Nov 30, 2022 · 0 comments
Open

Doesn't work table insert sample with comments #8

kotaroyamazaki opened this issue Nov 30, 2022 · 0 comments

Comments

@kotaroyamazaki
Copy link

kotaroyamazaki commented Nov 30, 2022

When I tried to create a table as per the readme, I could not do it due to an encoding error in the comment section.

When I erased the comments and ran it again, it worked fine.
Is there something wrong with my settings or need to fix cooment or readme?

$ gcloud spanner databases ddl update {db-name} --instance={instance-name} --ddl-file=schemas/single_table.sql
ERROR: (gcloud.spanner.databases.ddl.update) INVALID_ARGUMENT: Error parsing Spanner DDL statement: /*\nCopyright 2022 Google LLC\n\nLicensed under the Apache License, Version 2.0 (the \"License\") : Syntax error on line 1, column 1: Encountered \'/\' while parsing: ddl_statement
- '@type': type.googleapis.com/google.rpc.LocalizedMessage
  locale: en-US
  message: |-
    Error parsing Spanner DDL statement: /*
    Copyright 2022 Google LLC

    Licensed under the Apache License, Version 2.0 (the "License") : Syntax error on line 1, column 1: Encountered '/' while parsing: ddl_statement
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

No branches or pull requests

1 participant