commit ec07c98878cebcebf3f0da788edb88e4e1c99fa2 branch master Author: Vishesh Handa Date: Thu Nov 25 01:47:07 2010 +0530 Fix the fake boolean regexp. Now it works with * 'true' * true * 'true'^^xsd:boolean * 'true'^^ Before this it only used to work for the last 2. diff --git a/backends/virtuoso/virtuosomodel_p.h b/backends/virtuoso/virtuosomodel_p.h index 57233b6..fefc8e5 100644 --- a/backends/virtuoso/virtuosomodel_p.h +++ b/backends/virtuoso/virtuosomodel_p.h @@ -40,7 +40,7 @@ namespace Soprano { public: VirtuosoModelPrivate() : connectionPool( 0 ), - m_fakeBooleanRegExp( QLatin1String("([\"'])(true|false)\\1\\^\\^(|\\w+\\:boolean)"), + m_fakeBooleanRegExp( QLatin1String("([\"'])?(true|false)\\1?(\\^\\^(|\\w+\\:boolean))?"), Qt::CaseInsensitive, QRegExp::RegExp2 ), m_openIteratorMutex( QMutex::Recursive ) {