Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSqlDatabase, SET TRANSACTION READ ONLY, ISOLATION LEVEL
Qt 6.11 is out! See what's new in the release blog

QSqlDatabase, SET TRANSACTION READ ONLY, ISOLATION LEVEL

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    michaeldev
    wrote on last edited by
    #1

    Hi!

    Is it possible define SET TRANSACTION READ ONLY and ISOLATION LEVEL?
    By QSqlDatabase or QSqlQuery.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      What database system are you using ?
      Sqlite ?

      M 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        What database system are you using ?
        Sqlite ?

        M Offline
        M Offline
        michaeldev
        wrote on last edited by
        #3

        @mrjj Firebird

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          It seems you can do

          QSqlQuery query;
          query.exec("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE");
          

          dont know with readonly.

          M 2 Replies Last reply
          0
          • mrjjM mrjj

            Hi
            It seems you can do

            QSqlQuery query;
            query.exec("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE");
            

            dont know with readonly.

            M Offline
            M Offline
            michaeldev
            wrote on last edited by
            #5

            @mrjj Error's text: " "

            mrjjM 1 Reply Last reply
            -1
            • M michaeldev

              @mrjj Error's text: " "

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @michaeldev
              ??????????

              1 Reply Last reply
              0
              • mrjjM mrjj

                Hi
                It seems you can do

                QSqlQuery query;
                query.exec("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE");
                

                dont know with readonly.

                M Offline
                M Offline
                michaeldev
                wrote on last edited by
                #7

                @mrjj said in QSqlDatabase, SET TRANSACTION READ ONLY, ISOLATION LEVEL:

                Hi
                It seems you can do

                QSqlQuery query;
                query.exec("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE");
                

                dont know with readonly.

                false, error's text: " "

                1 Reply Last reply
                0
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  hi
                  And have connected to the DB first and the connection is fine ?
                  What are you using the FireBird plugin ? or via odbc ?

                  M 1 Reply Last reply
                  0
                  • mrjjM mrjj

                    hi
                    And have connected to the DB first and the connection is fine ?
                    What are you using the FireBird plugin ? or via odbc ?

                    M Offline
                    M Offline
                    michaeldev
                    wrote on last edited by
                    #9

                    @mrjj said in QSqlDatabase, SET TRANSACTION READ ONLY, ISOLATION LEVEL:

                    hi
                    And have connected to the DB first and the connection is fine ?
                    What are you using the FireBird plugin ? or via odbc ?

                    Connection is fine. Common queries have results good.
                    I use Firebird native plugin.

                    mrjjM 1 Reply Last reply
                    0
                    • M michaeldev

                      @mrjj said in QSqlDatabase, SET TRANSACTION READ ONLY, ISOLATION LEVEL:

                      hi
                      And have connected to the DB first and the connection is fine ?
                      What are you using the FireBird plugin ? or via odbc ?

                      Connection is fine. Common queries have results good.
                      I use Firebird native plugin.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @michaeldev
                      Hi
                      Ok then i don't think the plugin supports it.
                      But it odd it dont report anything back about it.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved