diff options
Diffstat (limited to 'redhat/applications/koffice/kexi-fix-support-for-boolean-types.patch')
-rw-r--r-- | redhat/applications/koffice/kexi-fix-support-for-boolean-types.patch | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/redhat/applications/koffice/kexi-fix-support-for-boolean-types.patch b/redhat/applications/koffice/kexi-fix-support-for-boolean-types.patch deleted file mode 100644 index dd8ee6ae7..000000000 --- a/redhat/applications/koffice/kexi-fix-support-for-boolean-types.patch +++ /dev/null @@ -1,23 +0,0 @@ ---- kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2007/10/25 14:56:36 729302 -+++ kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2008/04/30 09:54:43 802697 -@@ -236,12 +236,20 @@ - { - return (*m_res)[at()][pos].as(double()); - } -+ else if (f->type() == Field::Boolean ) -+ { -+ return QString((*m_res)[at()][pos].c_str()).lower() == "t" ? QVariant(true, 1) : QVariant(false, 1); -+ } - else if (f->typeGroup() == Field::BLOBGroup) - { - // pqxx::result::field r = (*m_res)[at()][pos]; - // kdDebug() << r.name() << ", " << r.c_str() << ", " << r.type() << ", " << r.size() << endl; - return ::pgsqlByteaToByteArray((*m_res)[at()][pos]); - } -+ else -+ { -+ return pgsqlCStrToVariant((*m_res)[at()][pos]); -+ } - } - else // We probably have a raw type query so use pqxx to determin the column type - { |