Skip to content
  • QPSQL driver cannot be loaded

    Unsolved General and Desktop sql qpsql qt 5.15 32bit mingw
    3
    0 Votes
    3 Posts
    482 Views
    K
    @Christian-Ehrlicher Thank you for responding. Yes I am. I have only one kit configured for this projecct at the moment which is using MinGW 8.1 with QtCreator 14.0.1 (if it matters). [image: 6841234a-7c82-4c19-8b0d-4f277a0b62c1.png] [image: fa796b40-728a-4112-b2f6-05a319ec2c10.png]
  • 0 Votes
    14 Posts
    2k Views
    J
    @JonB I do not understand anything. Please could you give more informantion. Note : app release folder has [image: 4eb83936-1e08-43aa-adf2-7623432feb91.png] I solved the problem :) I add lib files from Postgresql to release folder [image: 9264bc86-4743-4f27-8db5-6abb3fe4b395.png] and it works. thank you @jsulm and @JonB
  • QPSQL: authentication method 10 not supported

    Unsolved General and Desktop qpsql qtsql
    10
    0 Votes
    10 Posts
    5k Views
    S
    @Christian-Ehrlicher said in QPSQL: authentication method 10 not supported: It was meant a) as a test if it helps True, that should have given more information - but now the fog is even denser. The result, with the same test script: same error message with md5 in all the "host" or "local" records in pg_hba.conf, after restart of PostgreSQL. It works as expected with "trust" in the same places. I should perhaps add that I don't use QtSql with PostgreSQL databases in earnest. I just have some test scripts - and it's quite possible that I didn't run them for every new PostgreSQL or PyQt version. I've had problems with QtSql using PostgreSQL or Interbase/Firebird before, but this is the first time I couldn't even find a bug report for them.
  • QPSQL unable to COPY large files

    Solved General and Desktop postgresql qpsql
    2
    0 Votes
    2 Posts
    478 Views
    D
    Well, I have discovered my problem. I was trying to read the file before closing it: QString cadenaimportar = "SELECT importar_copy('" + tabla + "','/path/conceptos.csv',)"; ...... file.close(); And it would be: file.close(); QString cadenaimportar = "SELECT importar_copy('" + tabla + "','/path/conceptos.csv',)"; QSqlQuery consulta(db); if(consulta.prepare(cadenaimportar)) { consulta.exec(); } qDebug()<<consulta.lastError()<<"--"<<consulta.lastQuery();
  • 0 Votes
    27 Posts
    6k Views
    SGaistS
    I have usually seen processEvent called from the main thread directly which forces processing of events however calling it from a different thread is the first time. As you can see there's some strange interaction. I currently wonder whether you have an event that is processed by the wrong event loop.
  • 0 Votes
    18 Posts
    14k Views
    M
    Thank you very much @SGaist and @raven-worx for helping me out. I fixed this issue by using runtime libraries from this project: https://sourceforge.net/projects/postgresql-mingw-w64/