Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-21002

Document the ability to execute SQL multi-statement queries.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • documentation

    Description

      We need to add documentation about the ability to execute SQL scripts.

      One thing to remember to mention is that if the user leaves an open transaction initiated by the script, it will be rolled back after the script completes execution.
      For example:

      CREATE TABLE TEST(ID INT);
      START TRANSACTION;
      INSERT INTO TEST(1);
      

      Since the transaction remains open, all changes made within it will be undone when the script completes.

      Another thing is that COMMIT does nothing without an open script transaction.

      CREATE TABLE TEST(ID INT);
      COMMIT;
      COMMIT;
      

      Script must be executed without errors.

      JDBC

      TX control statements do not supported in non autocommit mode (see IGNITE-21020).

      At the moment AI3 executes statements only in lazy mode, and this mode does not quite fit the jdbc standard (see IGNITE-21133).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xtern Pavel Pereslegin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m