Results 1 to 2 of 2

Thread: Different results using QSqlDatabase::tables(QSql::Tables) - Linux vs Windoz

  1. #1
    Join Date
    Dec 2008
    Location
    Tahoe National Forest (California)
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Different results using QSqlDatabase::tables(QSql::Tables) - Linux vs Windoz

    Hello,
    I have a MySQL server containing several databases. Using the QSqlDatabase::tables(QSql::Tables) to obtain a list of tables in that opened database works as expected on Linux (it provides a list of the database tables). However, on Windoze, the exact same code produces a list of all tables from all databases on the server. This is very BAD. In both cases, the same database is opened with the same authentication.

    Can anyone explain this and possibly provide a workaround? Your (knowledgeable) help would be appreciated greatly!

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Different results using QSqlDatabase::tables(QSql::Tables) - Linux vs Windoz

    No workaround, but the bug is known:
    http://bugreports.qt.nokia.com/browse/QTBUG-10334

Similar Threads

  1. Using tables in QTextEdit
    By lyucs in forum Qt Programming
    Replies: 3
    Last Post: 29th May 2009, 13:51
  2. Replies: 4
    Last Post: 14th April 2008, 17:33
  3. tables
    By tommy in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2007, 16:17
  4. nested tables
    By Jeroen van der Waal in forum Qt Programming
    Replies: 1
    Last Post: 6th June 2007, 18:12
  5. QDataTable with two tables
    By cristiano in forum Qt Tools
    Replies: 1
    Last Post: 14th September 2006, 18:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.