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

Support Query and DML in both of ExecuteStreamingSql and ExecuteSql #92

Open
apstndb opened this issue May 19, 2023 · 0 comments
Open

Comments

@apstndb
Copy link

apstndb commented May 19, 2023

Currently, handy-spanner supports only DML for ExecuteSql and only queries for ExecuteStreamingSql.
In the real instance, the both of ExecuteSql and ExecuteStreamingSql can execute the both of queries and DMLs.

It makes handy-spanner incompatible with the current behavior of spanner-cli.
(THEN RETURN support needs to execute DMLs using ExecuteStreamingSql in the current Cloud Spanner client library.)
cloudspannerecosystem/spanner-cli#151

spanner> INSERT INTO Counter(pk, col) VALUES(0, 0);
ERROR: spanner: code = "InvalidArgument", desc = "Syntax error: \"INSERT INTO Counter(pk, col) VALUES(0, 0)\": syntax error::1:1: expected token: SELECT, but: <ident>\n\n  1:  INSERT INTO Counter(pk, col) VALUES(0, 0)\n      ^~~~~~\n"
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