[Interest] How to deal with database specific syntax

pmqt71 pmqt71 at gmail.com
Wed Feb 11 13:54:22 CET 2015


Hi all,

in my Qt application I've to duplicate sql instructions for MySql and
Postgres due to different sql syntax.
Most problems are on date types. For instance, MySql has DATEDIFF, Postgres
has EXTRACT, CAST...

Without using ORMs, is there a way to manage specific sql syntax?


Thanks
pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150211/18b8e198/attachment.html>


More information about the Interest mailing list