db2.sql8.2.properties 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. # Licensed Materials - Property of IBM
  2. # IBM Cognos Products: OQP
  3. # (C) Copyright IBM Corp. 2005, 2020
  4. # US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM corp.
  5. #
  6. # Product information.
  7. #
  8. #
  9. # Delimiters.
  10. #
  11. #
  12. # Various limits.
  13. #
  14. limits.maxStatementLength=65535
  15. #
  16. # General settings.
  17. #
  18. #
  19. # Various features.
  20. #
  21. supports.nestedOlap=false
  22. #
  23. # Command.
  24. #
  25. #
  26. # Tables.
  27. #
  28. #
  29. # Constructors.
  30. #
  31. #
  32. # Clauses.
  33. #
  34. #
  35. # Joins.
  36. #
  37. #
  38. # Set operators.
  39. #
  40. #
  41. # Logical operators.
  42. #
  43. #
  44. # Arithmetic operators.
  45. #
  46. #
  47. # Group By Operators
  48. #
  49. #
  50. # Comparison predicates.
  51. #
  52. #
  53. # Various predicates.
  54. #
  55. predicates.IsDistinctFrom[any,any]=
  56. predicates.IsNotDistinctFrom[any,any]=
  57. #
  58. # Expressions.
  59. #
  60. #
  61. # Cast expression
  62. #
  63. expressions.Cast[time,varchar]=
  64. expressions.Cast[time,char]=
  65. # cast through CHAR as an intermediate type so we can push it.
  66. expressions.Cast[numeric,varchar]=CAST(RTRIM(CAST(%1$s as CHAR(%3$d))) as %2$s)
  67. # safe to substitute VARCHAR for NVARCHAR on DB2.
  68. expressions.Cast[numeric,nvarchar]=CAST(RTRIM(CAST(%1$s as CHAR(%3$d))) as VARCHAR(%3$d))
  69. # disable cast[decimal,text],
  70. # since DB2 8.2 adds leading 0's to the result string
  71. expressions.Cast[decimal,char]=
  72. expressions.Cast[decimal,varchar]=
  73. expressions.Cast[decimal,nchar]=
  74. expressions.Cast[decimal,nvarchar]=
  75. #
  76. # literal formats
  77. #
  78. literals.format.time={t '%1$02d:%2$02d:%3$02d'}
  79. #
  80. # fds functions
  81. #
  82. functions.cast_char[time]=CHAR(%1$s)
  83. functions.cast_varchar[time,any]=CAST(%1$s AS VARCHAR (%2$d))
  84. functions.cast_longvarchar[time]=CAST(%1$s AS LONG VARCHAR)
  85. #
  86. # Extract expression.
  87. #
  88. expressions.Extract.YEAR[any]=YEAR(%1$s)
  89. expressions.Extract.MONTH[any]=MONTH(%1$s)
  90. expressions.Extract.DAY[any]=DAY(%1$s)
  91. expressions.Extract.HOUR[any]=HOUR(%1$s)
  92. expressions.Extract.MINUTE[any]=MINUTE(%1$s)
  93. #
  94. # Trim expression. DB2 8.2 doesn't support SQL Standard TRIM syntax.
  95. #
  96. expressions.Trim.BOTH[text]=LTRIM(RTRIM(%1$s))
  97. expressions.Trim.LEADING[text]=LTRIM(%1$s)
  98. expressions.Trim.TRAILING[text]=RTRIM(%1$s)
  99. expressions.Trim.BOTH[text,text]=
  100. expressions.Trim.LEADING[text,text]=
  101. expressions.Trim.TRAILING[text,text]=
  102. #
  103. # Windowed aggregates (SQL/OLAP).
  104. #
  105. olap.FirstValue[any]=
  106. olap.LastValue[any]=
  107. olap.NTile[any]=
  108. #
  109. # Window clause.
  110. #
  111. #
  112. # Window specification
  113. # A list of windows specifications that are supported by the DB
  114. # P = PARTITION BY
  115. # O = ORDER BY
  116. # F = FRAME
  117. #
  118. #
  119. # Olap (distinct).
  120. #
  121. #
  122. # Aggregates.
  123. #
  124. #
  125. # Aggregates (distinct).
  126. #
  127. #
  128. # Linear regression aggregates.
  129. #
  130. #
  131. # Character scalar functions.
  132. #
  133. functions.CharLength[text]=LENGTH(%1$s, CODEUNITS32)
  134. functions.CharLength[clob]=LENGTH(%1$s, CODEUNITS32)
  135. functions.BitLength[text]=
  136. #
  137. # FDS functions.
  138. #
  139. #
  140. # Numeric scalar functions.
  141. #
  142. #
  143. # Datetime value functions.
  144. #
  145. #
  146. # XML functions.
  147. #
  148. #
  149. # Business date functions.
  150. #
  151. functions.FirstOfMonth[any]=(%1$s - (DAY(%1$s)-1) DAY)
  152. functions.LastOfMonth[any]=(%1$s - (DAY(%1$s)-1) DAY + 1 MONTH - 1 DAY)
  153. #
  154. # Mappings used for transformation purposes only.
  155. #
  156. #
  157. # Spatial functions (SQL/MM).
  158. #
  159. #
  160. # Literals.
  161. # Use datatypes only, not domains.
  162. #
  163. #
  164. # Literal format specifications.
  165. #
  166. #
  167. # Data types.
  168. #
  169. #
  170. # Collation sequence query
  171. #
  172. collation.sequence.sql=