Это старая версия документа.


fix commit problem in qsql_ibase.cpp

the problem

Transaction with unsuccessful commit can never be rollbacked. This migth cause some metaobjects get locked and as result hanging of any client (including itself) which tries to use that metaobjects. Example:

  1. given the following:
    CREATE SEQUENCE myseq;
     
    CREATE TABLE mytbl (id INTEGER);
     
    CREATE OR ALTER TRIGGER mytrig_bi0 FOR mytbl
    active BEFORE INSERT POSITION 0
    AS
    BEGIN
      NEW.id = NEXT VALUE FOR myseq;
    END
  2. qt code:
      QSqlDatabase db = ...
     
dev/qt/qt_ibase_fix_commit.1432119274.txt.gz · Последние изменения: 2015/05/20 13:54 — denis
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0