From 338ea7617f33d975cc35f44030f522ec5d77adfb Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Sun, 30 Oct 2011 11:40:22 +0100 Subject: Return proper UNKNOWN_RULE instead of 0 for unknown rule also make unknown rule -1 to better separate it Before, an unknown rule actually went to 0 == OSQLParser::select_statement --- connectivity/inc/connectivity/sqlnode.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'connectivity/inc/connectivity') diff --git a/connectivity/inc/connectivity/sqlnode.hxx b/connectivity/inc/connectivity/sqlnode.hxx index 69eeaba66bf0..4fd6714dd2c8 100644 --- a/connectivity/inc/connectivity/sqlnode.hxx +++ b/connectivity/inc/connectivity/sqlnode.hxx @@ -239,7 +239,7 @@ namespace connectivity between_predicate_part_2, cast_spec, rule_count, // last value - UNKNOWN_RULE // ID indicating that a node is no rule with a matching Rule-enum value (see getKnownRuleID) + UNKNOWN_RULE = -1 // ID indicating that a node is no rule with a matching Rule-enum value (see getKnownRuleID) }; // must be ascii encoding for the value -- cgit v1.2.3