Trolltech Labs Forum » General discussions

QSqlTableModel::select()

(1 post)
  • Started 2 months ago by beulah

  1. beulah
    beulah
    Member

    QSqlTableModel *model = new QSqlTableModel(table, db);
    model->setEditStrategy(QSqlTableModel::OnRowChange);
    model->setTable("myt");
    model->select();

    If the above piece of code is made to run for a database in mysql driver the driver trace file shows a query constructed like "SELECT c1, image FROM myt" in SQLExecDirect API.

    But the same for a dataase in Microsoft access shows a query of the form "SELECT "c1", "image" FROM "myt" " .

    Can anyone please tell how Qt decides the construction of queries?

    Posted: 2 months #

RSS feed for this topic

Reply

You must log in to post.