Commits

Ocke Janssen [oj]  committed 0cba976

dba33m: #i115436# only cast handled

  • Participants
  • Parent commits 916d53c

Comments (0)

Files changed (2)

File connectivity/inc/connectivity/sqlnode.hxx

             character_string_type,
             other_like_predicate_part_2,
             between_predicate_part_2,
+			cast_spec,
             rule_count,             // letzter_wert
             UNKNOWN_RULE            // ID indicating that a node is no rule with a matching Rule-enum value (see getKnownRuleID)
 		};

File connectivity/source/parse/sqlnode.cxx

             { OSQLParseNode::parenthesized_boolean_value_expression, "parenthesized_boolean_value_expression" },
             { OSQLParseNode::character_string_type, "character_string_type" },
             { OSQLParseNode::other_like_predicate_part_2, "other_like_predicate_part_2" },
-            { OSQLParseNode::between_predicate_part_2, "between_predicate_part_2" }
+            { OSQLParseNode::between_predicate_part_2, "between_predicate_part_2" },
+			{ OSQLParseNode::cast_spec, "cast_spec" }
         };
         size_t nRuleMapCount = sizeof( aRuleDescriptions ) / sizeof( aRuleDescriptions[0] );
         OSL_ENSURE( nRuleMapCount == size_t( OSQLParseNode::rule_count ), "OSQLParser::OSQLParser: added a new rule? Adjust this map!" );
                 rString.append(aTmp);
 
             }   break;
-            // fall through
         case SQL_NODE_PUNCTUATION:
-            if ( m_aNodeValue.toChar() == '(' || m_aNodeValue.toChar() == ')') // no spaces in front of '(' or after ')'
+			if ( getParent() && SQL_ISRULE(getParent(),cast_spec) && m_aNodeValue.toChar() == '(' ) // no spaces in front of '('
             {
                 rString.append(m_aNodeValue);
                 break;