boot910b.sql 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. { ************************************************************************* }
  2. { }
  3. { Licensed Materials - Property of IBM and/or HCL }
  4. { }
  5. { IBM Informix Dynamic Server }
  6. { (c) Copyright IBM Corporation 1996, 2004 All rights reserved. }
  7. { (c) Copyright HCL Technologies Ltd. 2017. All Rights Reserved. }
  8. { }
  9. { ************************************************************************* }
  10. { }
  11. { Title: boot910b.sql }
  12. { }
  13. { Description: }
  14. { Bootstrapping script for a 9.10 'patch' database }
  15. { }
  16. { ************************************************************************* }
  17. { }
  18. { ** IMPORTANT - PLEASE READ }
  19. { }
  20. { All types and routines referenced in this file must be prefixed }
  21. { with the user name "informix". E.g., use "informix.boolean" }
  22. { and not "boolean" }
  23. { }
  24. { Also, please follow the formatting conventions!!! }
  25. { }
  26. { ************************************************************************* }
  27. -- Define optimizer related functions for rtree access method
  28. create function informix.rlt_stat(pointer, pointer)
  29. returns int
  30. external name '(rlt_stat)'
  31. language C;
  32. create function informix.rlt_cost(pointer, pointer)
  33. returns real
  34. external name '(rlt_cost)'
  35. language C;
  36. alter access_method rtree add am_stats = informix.rlt_stat,
  37. add am_scancost = informix.rlt_cost;