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

cli: copy-pasting multiple statements no longer works #94341

Closed
yuzefovich opened this issue Dec 27, 2022 · 1 comment
Closed

cli: copy-pasting multiple statements no longer works #94341

yuzefovich opened this issue Dec 27, 2022 · 1 comment
Assignees
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.

Comments

@yuzefovich
Copy link
Member

yuzefovich commented Dec 27, 2022

On 0e5acf1 when I copy-paste two SQL statements at once, then only the first is executed. E.g. when copying and pasting

CREATE TABLE t (
  a INT PRIMARY KEY,
  b INT
);

SELECT sum_int(a) OVER (ORDER BY b ASC NULLS LAST RANGE 0 PRECEDING)
FROM t;

I get this

root@127.0.0.1:26257/defaultdb> CREATE TABLE t (                                                                                                      
                             ->   a INT PRIMARY KEY,                                                                                                  
                             ->   b INT                                                                                                               
                             -> );                                                                                                                    

CREATE TABLE


Time: 4ms total (execution 4ms / network 0ms)

root@127.0.0.1:26257/defaultdb>                                                                                                                       

Is this behavior expected? Am I missing something?

Jira issue: CRDB-22840
Epic: CRDB-22182

@yuzefovich yuzefovich added the C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. label Dec 27, 2022
@knz
Copy link
Contributor

knz commented Dec 28, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Projects
None yet
Development

No branches or pull requests

2 participants