Skip to content

Commit

Permalink
Fixed the others two problems of CORE-2176
Browse files Browse the repository at this point in the history
  • Loading branch information
asfernandes committed Nov 9, 2008
1 parent a5caf68 commit 720a49c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/jrd/cmp.cpp
Expand Up @@ -5375,6 +5375,7 @@ jrd_nod* CMP_pass2(thread_db* tdbb, CompilerScratch* csb, jrd_nod* const node, j
case nod_current_time:
case nod_current_timestamp:
case nod_current_date:
case nod_derived_expr:
#ifdef SCROLLABLE_CURSORS
case nod_seek:
#endif
Expand Down
7 changes: 7 additions & 0 deletions src/jrd/opt.cpp
Expand Up @@ -2846,6 +2846,7 @@ static bool expression_possible_unknown(const jrd_nod* node)
case nod_substr:
case nod_trim:
case nod_sys_function:
case nod_derived_expr:

case nod_like:
case nod_between:
Expand All @@ -2858,6 +2859,7 @@ static bool expression_possible_unknown(const jrd_nod* node)
case nod_gtr:
case nod_lss:
case nod_leq:

{
const jrd_nod* const* ptr = node->nod_arg;
// Check all sub-nodes of this node.
Expand Down Expand Up @@ -3033,6 +3035,7 @@ static bool expression_contains_stream(CompilerScratch* csb,
case nod_substr:
case nod_trim:
case nod_sys_function:
case nod_derived_expr:

case nod_like:
case nod_between:
Expand All @@ -3050,6 +3053,7 @@ static bool expression_contains_stream(CompilerScratch* csb,
case nod_gtr:
case nod_lss:
case nod_leq:

{
const jrd_nod* const* ptr = node->nod_arg;
// Check all sub-nodes of this node.
Expand Down Expand Up @@ -5984,6 +5988,7 @@ static void get_expression_streams(const jrd_nod* node,
case nod_substr:
case nod_trim:
case nod_sys_function:
case nod_derived_expr:

case nod_like:
case nod_between:
Expand All @@ -6001,6 +6006,7 @@ static void get_expression_streams(const jrd_nod* node,
case nod_gtr:
case nod_lss:
case nod_leq:

{
const jrd_nod* const* ptr = node->nod_arg;
// Check all sub-nodes of this node.
Expand Down Expand Up @@ -6149,6 +6155,7 @@ static jrd_nod* get_unmapped_node(thread_db* tdbb, jrd_nod* node,
case nod_substr:
case nod_trim:
case nod_sys_function:
case nod_derived_expr:
{
// Check all sub-nodes of this node.
jrd_nod** ptr = node->nod_arg;
Expand Down

0 comments on commit 720a49c

Please sign in to comment.