[Interest] QSqlTableModel - table name issue in Postresql

Muhammad Bashir Al-Noimi mbnoimi at gmail.com
Sat Apr 6 14:30:23 CEST 2013


Hi All,


Recently I noticed that I’ve to add double quotes to table’s name for 
calling Postgresql’s table while it’s not required for MySQL or SQLite 
tables!!

how can I make QSqlTableModel works in same way for three types of SQL 
databases?


Posgtresql:

p_tableModel->setTable("\"Persons\"");


MySQL & SQLite:

p_tableModel->setTable("Persons");

-- 
Best Regards,
Muhammad Bashir Al-Noimi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130406/b8d9939b/attachment.html>


More information about the Interest mailing list