Commit dee872de authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

geqo_rel_paths(): compute_joinrel_size() shouldn't be called

for non-JoinPath path! So now we have:
    if ( IsA_JoinPath (cheapest) )
        rel->size = compute_joinrel_size(cheapest);
parent 5c2649b6
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: geqo_paths.c,v 1.3 1997/06/10 07:53:55 vadim Exp $ * $Id: geqo_paths.c,v 1.4 1997/06/11 02:44:12 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -112,6 +112,7 @@ geqo_rel_paths(Rel *rel) ...@@ -112,6 +112,7 @@ geqo_rel_paths(Rel *rel)
} }
cheapest = (JoinPath*)set_paths(rel, path); cheapest = (JoinPath*)set_paths(rel, path);
if ( IsA_JoinPath (cheapest) )
rel->size = compute_joinrel_size(cheapest); rel->size = compute_joinrel_size(cheapest);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment