Skip to content

Doesn't work table insert sample with comments #8

@kotaroyamazaki

Description

@kotaroyamazaki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions