boot1000.sql 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. { ************************************************************************* }
  2. { }
  3. { Licensed Materials - Property of IBM and/or HCL }
  4. { }
  5. { IBM Informix Dynamic Server }
  6. { (c) Copyright IBM Corporation 2003, 2004 All rights reserved. }
  7. { (c) Copyright HCL Technologies Ltd. 2017. All Rights Reserved. }
  8. { }
  9. { Title: boot1000.sql }
  10. { }
  11. { Description: }
  12. { Bootstrapping script for a 10.00 databas }
  13. { }
  14. { ************************************************************************* }
  15. { }
  16. { ** IMPORTANT - PLEASE READ }
  17. { }
  18. { All types and routines referenced in this file must be prefixed }
  19. { with the user name "informix". E.g., use "informix.boolean" }
  20. { and not "boolean" }
  21. { }
  22. { Also, please follow the formatting conventions!!! }
  23. { }
  24. { Please ensure that the identifiers that you choose are <= 18 }
  25. { characters in length. Otherwise the changes would affect database }
  26. { reversion. }
  27. { }
  28. { ************************************************************************* }
  29. { --- Create CDR exposed functions }
  30. create dba function informix.cdrcmd(informix.integer)
  31. returns informix.integer
  32. external name '(cdrcmd_1)'
  33. language C;
  34. grant execute on function informix.cdrcmd(informix.integer)
  35. to public as informix;
  36. create dba procedure informix.cdrcmdproc(informix.integer)
  37. external name '(cdrcmd_1)'
  38. language C
  39. end procedure;
  40. grant execute on procedure informix.cdrcmdproc(informix.integer)
  41. to public as informix;
  42. create dba function informix.cdrcmd(informix.integer, informix.integer)
  43. returns informix.integer
  44. external name '(cdrcmd_2)'
  45. language C;
  46. grant execute on function informix.cdrcmd(informix.integer, informix.integer)
  47. to public as informix;
  48. create dba function informix.cdrcmd(informix.integer, informix.integer, informix.integer)
  49. returns informix.integer
  50. external name '(cdrcmd_3)'
  51. language C;
  52. grant execute on function informix.cdrcmd(informix.integer, informix.integer, informix.integer) to public as informix;
  53. create dba function informix.cdrcmd(informix.integer, informix.lvarchar)
  54. returns informix.integer
  55. external name '(cdrcmd_4)'
  56. language C;
  57. grant execute on function informix.cdrcmd(informix.integer, informix.lvarchar)
  58. to public as informix;