{ ************************************************************************* }
{                                                                           }
{  Licensed Materials - Property of IBM and/or HCL                                     }
{                                                                           }
{  IBM Informix Dynamic Server                                              }
{  (c) Copyright IBM Corporation 1996, 2004 All rights reserved.            }
{  (c) Copyright HCL Technologies Ltd. 2017.  All Rights Reserved.             }
{                                                                           }
{ ************************************************************************* }
{                                                                           }
{   Title:      boot910b.sql                                                }
{                                                                           }
{   Description:                                                            }
{       Bootstrapping script for a 9.10 'patch' database                    }
{                                                                           }
{ ************************************************************************* }
{                                                                           }
{  ** IMPORTANT - PLEASE READ                                               } 
{                                                                           }
{     All types and routines referenced in this file must be prefixed       }
{     with the user name "informix". E.g., use "informix.boolean"           }
{     and not "boolean"                                                     }
{									    }
{     Also, please follow the formatting conventions!!!                     }
{                                                                           }
{ ************************************************************************* }

-- Define optimizer related functions for rtree access method
create function informix.rlt_stat(pointer, pointer)
    returns int
    external name '(rlt_stat)'
    language C;
create function informix.rlt_cost(pointer, pointer)
    returns real 
    external name '(rlt_cost)'
    language C;

alter access_method rtree add am_stats = informix.rlt_stat,
                          add am_scancost = informix.rlt_cost;

