aboutsummaryrefslogtreecommitdiff
path: root/qt/pgsql/date-time/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'qt/pgsql/date-time/driver.cxx')
-rw-r--r--qt/pgsql/date-time/driver.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt/pgsql/date-time/driver.cxx b/qt/pgsql/date-time/driver.cxx
index e81fcf3..fde15a6 100644
--- a/qt/pgsql/date-time/driver.cxx
+++ b/qt/pgsql/date-time/driver.cxx
@@ -11,6 +11,7 @@
#include <iostream>
#include <QtCore/QDateTime>
+#include <QtCore/QCoreApplication>
#include <odb/pgsql/database.hxx>
#include <odb/pgsql/transaction.hxx>
@@ -29,6 +30,8 @@ test_out_of_range_value (object&, database&);
int
main (int argc, char* argv[])
{
+ QCoreApplication app (argc, argv);
+
try
{
auto_ptr<database> db (create_database (argc, argv));