boot912b.sql 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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: boot912b.sql }
  12. { }
  13. { Description: }
  14. { Bootstrapping script for a 9.12 database, run during database }
  15. { construction. }
  16. { }
  17. { ************************************************************************* }
  18. { }
  19. { ** IMPORTANT - PLEASE READ }
  20. { }
  21. { All types and routines referenced in this file must be prefixed }
  22. { with the user name "informix". E.g., use "informix.boolean" }
  23. { and not "boolean" }
  24. { }
  25. { ************************************************************************* }
  26. -- Add rowimport/rowexport functions and casts
  27. create dba function informix.rowexport(row) returns informix.impexp
  28. external name '(rowexport)' language C not variant;
  29. grant execute on function informix.rowexport(informix.row) to public as informix;
  30. create dba function informix.rowimport(informix.impexp) returns row
  31. external name '(rowimport)' language C not variant;
  32. grant execute on function informix.rowimport(informix.impexp) to public as informix ;
  33. create implicit cast (informix.impexp as informix.row with
  34. informix.rowimport);
  35. create implicit cast (informix.row as informix.impexp with
  36. informix.rowexport);
  37. -- Define BladeManager boot function
  38. create function informix.sysbldprepare (char(64), char(18))
  39. returns integer
  40. external name '$INFORMIXDIR/extend/ifxmngr/ifxmngr.bld(SYSBldCustomPrepare)'
  41. language C;
  42. -- cast functions for untyped collection
  43. create dba function informix.collcast(collection) returns collection
  44. external name '(collcast)' language C not variant;
  45. grant execute on function informix.collcast(collection) to public as informix ;
  46. create dba function informix.collectionoutput(collection)
  47. returns informix.lvarchar
  48. external name '(collectionoutput)' language C not variant;
  49. grant execute on function informix.collectionoutput(collection) to public as informix ;