You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/qgssqlexpressioncompiler.h
+20-4Lines changed: 20 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -47,10 +47,11 @@ class CORE_EXPORT QgsSqlExpressionCompiler
47
47
*/
48
48
enum Flag
49
49
{
50
-
CaseInsensitiveStringMatch = 0x01, //!< Provider performs case-insensitive string matching for all strings
51
-
LikeIsCaseInsensitive = 0x02, //!< Provider treats LIKE as case-insensitive
52
-
NoNullInBooleanLogic = 0x04, //!< Provider does not support using NULL with boolean logic, e.g., "(...) OR NULL"
53
-
NoUnaryMinus = 0x08, //!< Provider does not unary minus, e.g., " -( 100 * 2 ) = ..."
50
+
CaseInsensitiveStringMatch = 1, //!< Provider performs case-insensitive string matching for all strings
51
+
LikeIsCaseInsensitive = 1 << 1, //!< Provider treats LIKE as case-insensitive
52
+
NoNullInBooleanLogic = 1 << 2, //!< Provider does not support using NULL with boolean logic, e.g., "(...) OR NULL"
53
+
NoUnaryMinus = 1 << 3, //!< Provider does not unary minus, e.g., " -( 100 * 2 ) = ..."
54
+
IntegerDivisionResultsInInteger = 1 << 4, //!< Dividing int by int results in int on provider. Subclass must implement the castToReal() function to allow compilation of division.
54
55
};
55
56
Q_DECLARE_FLAGS( Flags, Flag )
56
57
@@ -108,6 +109,21 @@ class CORE_EXPORT QgsSqlExpressionCompiler
0 commit comments