Maksim Zhuravkov created IGNITE-25297:
-----------------------------------------

             Summary: Sql. Reject scripts that contains only COMMIT or only 
START TRANSACTION commands
                 Key: IGNITE-25297
                 URL: https://issues.apache.org/jira/browse/IGNITE-25297
             Project: Ignite
          Issue Type: Improvement
          Components: sql
            Reporter: Maksim Zhuravkov


The SQL CLI uses SQL scripts for running SQL commands but following scripts are 
valid:

{noformat}
Connected to http://localhost:10300
[node1]> sql
sql-cli> COMMIT;
Updated 0 rows.

sql-cli> COMMIT;COMMIT;
Updated 0 rows.
Updated 0 rows.

sql-cli> START TRANSACTION;
Updated 0 rows.

sql-cli> START TRANSACTION;
Updated 0 rows.

sql-cli> 
{noformat}

Let's reject such scripts because they do nothing and quite confusing.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to