[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/predicate/Predicate
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2009-01-12 20:17:34
Message-ID: 1231791454.313316.32282.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 910187 by staniek:

compile, use latin1str


 M  +3 -3      Connection.cpp  


--- branches/work/predicate/Predicate/Connection.cpp #910186:910187
@@ -863,7 +863,7 @@
 
     QString sql;
     if (objType == Predicate::AnyObjectType)
-        sql = "SELECT o_name FROM kexi__objects ORDER BY o_id";
+        sql = QLatin1String("SELECT o_name FROM kexi__objects ORDER BY o_id");
     else
         sql = QString::fromLatin1("SELECT o_name FROM kexi__objects WHERE o_type=%1 \
ORDER BY o_id").arg(objType);  
@@ -953,9 +953,9 @@
 
     QString sql;
     if (objType == KexiDB::AnyObjectType)
-        sql = "SELECT o_id, o_name FROM kexi__objects ORDER BY o_id";
+        sql = QLatin1String("SELECT o_id, o_name FROM kexi__objects ORDER BY o_id");
     else
-        sql = QString::fromLatin1("SELECT o_id, o_name FROM kexi__objects WHERE \
o_type=%1 ORDER BY o_id").arg(objType)); +        sql = QString::fromLatin1("SELECT \
o_id, o_name FROM kexi__objects WHERE o_type=%1 ORDER BY o_id").arg(objType);  
     Cursor *c = executeQuery(sql);
     if (!c)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic