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