cogdmod_ast.ini 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. ;***********************************************************************
  2. ;Licensed Materials - Property of IBM
  3. ;
  4. ;BI and PM: UDA
  5. ;
  6. ;(C) Copyright IBM Corp. 2005, 2020
  7. ;
  8. ;U.S. Government Users Restricted Rights - Use, duplication, or disclosure
  9. ;by GSA ADP Schedule Contract with IBM Corp.
  10. ;
  11. ;Unless specifically authorized by IBM, you may not modify any part of this
  12. ;file. Where modification is authorized, you must reproduce any copyright
  13. ;notices contained in this file and specifically identify which
  14. ;modifications have been made by your organization. YOU ARE SOLELY
  15. ;RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF ANY MODIFICATIONS TO
  16. ;THIS FILE AND ASSUME ALL RISKS ASSOCIATED WITH THE USE AND DISTRIBUTION
  17. ;OF THE MODIFIED FILE. IBM will not provide support relating to
  18. ;unauthorized changes you make to this file.
  19. ;***********************************************************************
  20. ; $Header: $
  21. ;
  22. ; Module:
  23. ; cogdmod_ast.ini
  24. ;
  25. ; Purpose:
  26. ; This module contains the Aster Data NCluster gateway information.
  27. ;
  28. ; Notes:
  29. ; Do NOT modify this file. Doing so could result in unknown behavior
  30. ; by the Aster Data NCluster gateway, possibly resulting in application aborts.
  31. ;
  32. ; ************************************************************************
  33. [DATABASE:NCLUSTER]
  34. Disable_Subquery_With_Parameters=T
  35. Keyword Alias=" as \"%s\" "
  36. SQL_API_SQLDESCRIBEPARAM="FALSE"
  37. [Exceptions Commands DATABASE:NCLUSTER]
  38. Select="select "
  39. Insert="insert "
  40. Update="update "
  41. Delete="delete "
  42. Call=
  43. Select_Star="T"
  44. Max_Stmt_Len=""
  45. [Exceptions Clauses DATABASE:NCLUSTER]
  46. From="from"
  47. Where="where"
  48. Group_By="Group By"
  49. Having="having"
  50. Window=
  51. With=
  52. With_Recursive=
  53. [Exceptions Tables DATABASE:NCLUSTER]
  54. Derived=T
  55. Joined=F
  56. Simple_And_Joined=T
  57. Tbl_Ref_Limit=""
  58. SubSelect_Limit=""
  59. Table_Constructor=F
  60. UniqueName_Prefix="coguda"
  61. [Exceptions Joins DATABASE:NCLUSTER]
  62. Inner=T
  63. Left_Outer=T
  64. Right_Outer=T
  65. Full_Outer=T
  66. Cross=F
  67. On_Condition_Or_Predicate=T
  68. Nested_Outer=T
  69. Inner_Tbl_Restrict=F
  70. Optnl_Tbl_Restrict=F
  71. Non_Equi_Joins=T
  72. One_Outer=F
  73. Natural=T
  74. Left_Nested=T
  75. Right_Nested=T
  76. Two_Sided_Join_Restrict=F
  77. Optnl_Tbl_Join_Restrict=F
  78. Optnl_Tbl_Join_Filter=T
  79. Optnl_Tbl_Filter=T
  80. Prsrv_Tbl_Join_Filter=T
  81. Prsrv_Tbl_Filter=T
  82. On_Condition_Set_Functions=T
  83. On_Condition_Subqueries=T
  84. Full_Non_Equi_Join=F
  85. On_Condition_In_Predicate=T
  86. On_Condition_Not_Predicate=T
  87. On_Condition_Like_Predicate=T
  88. On_Condition_Between_Predicate=T
  89. On_Condition_IsNull_Predicate=T
  90. Non_Join_Expr=T
  91. Non_Join_Non_Equi_Expr=T
  92. Only_Eql_With_And=F
  93. On_Condition_Functions=T
  94. Two_Sided_Join_Restrict_Filter=F
  95. Nested_Inner=T
  96. Product_Join=T
  97. Outer_Non_Equi_Join=T
  98. On_Condition_No_Expr=T
  99. Outer_Syntax=T
  100. Left_Pre=
  101. ;Left_Eql=" LEFT OUTER JOIN "
  102. Left_Post=
  103. Right_Pre=
  104. ;Right_Eql=" RIGHT OUTER JOIN "
  105. Right_Post=
  106. ;Full_Syntax=" FULL OUTER JOIN "
  107. Full_Pre=
  108. Full_Post=
  109. ;Inner_Syntax=" INNER JOIN "
  110. Inner_Col_Pre=
  111. Inner_Col_Post=
  112. ;Cross_Syntax=" CROSS JOIN "
  113. ;Union_Syntax=" UNION "
  114. ;Natural_Syntax=" NATURAL JOIN "
  115. [Exceptions Predicates DATABASE:NCLUSTER]
  116. Between="between"
  117. In="in"
  118. Like="like"
  119. Is_Null="is null"
  120. Any="any"
  121. All="all"
  122. Exists="exists"
  123. NotLike="not like"
  124. [Exceptions Aggregates DATABASE:NCLUSTER]
  125. Max="max"
  126. Min="min"
  127. Sum="sum"
  128. Avg="avg"
  129. Count="count"
  130. Count_Star="count(*)"
  131. Stddev="stddev"
  132. Stddev_Pop="stddev_pop"
  133. Stddev_Samp="stddev_samp"
  134. Variance="variance"
  135. Var_Pop="var_pop"
  136. Var_Samp="var_samp"
  137. Grouping=
  138. Rank=
  139. Dense_Rank=
  140. Percent_Rank=
  141. Cume_Dist=
  142. Percentile_Cont=
  143. Percentile_Disc=
  144. First_Value=
  145. Last_Value=
  146. Percentile=F
  147. [Exceptions OLAP Functions DATABASE:NCLUSTER]
  148. Olap_Min="min"
  149. Olap_Max="max"
  150. Olap_Sum="sum"
  151. Olap_Avg="avg"
  152. Olap_Count="count"
  153. Olap_Count_Star="count(*)"
  154. Olap_Stddev="stddev"
  155. Olap_Stddev_Pop="stddev_pop"
  156. Olap_Stddev_Samp="stddev_samp"
  157. Olap_Variance="variance"
  158. Olap_Var_Pop="var_pop"
  159. Olap_Var_Samp="var_samp"
  160. Olap_Rank="rank"
  161. Olap_Dense_Rank="dense_rank"
  162. Olap_Percent_Rank="percent_rank"
  163. Olap_Cume_Dist="cume_dist"
  164. Olap_Percentile_Cont=
  165. Olap_Percentile_Disc=
  166. ; Vendor imposing ordering in window/does not support function
  167. Olap_First_Value=
  168. ; Vendor imposing ordering in window/does not support function
  169. Olap_Last_Value=
  170. Olap_Row_Number="row_number"
  171. Olap_Ratio_To_Report=
  172. Olap_Ntile="ntile"
  173. ; Olap_Count_Default="ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING"
  174. ; Olap_Sum_Default="ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING"
  175. ; Olap_Last_Value_Default="ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING"
  176. [Exceptions OLAP Functions DATABASE:NCLUSTER VERSION:04]
  177. Olap_Percent_Rank=
  178. Olap_Cume_Dist=
  179. Olap_Ntile=
  180. [Exceptions Set Operators DATABASE:NCLUSTER]
  181. Union="union"
  182. Union_All=T
  183. Intersect="intersect"
  184. Intersect_All=T
  185. Except=" except "
  186. Except_All=T
  187. Distinct="distinct"
  188. Order_By="order by"
  189. [Exceptions Operators DATABASE:NCLUSTER]
  190. Add="+"
  191. Sub="-"
  192. Mul="*"
  193. Div="/"
  194. Eql="="
  195. Neq="<>"
  196. Grt=">"
  197. Geq=">="
  198. Les="<"
  199. Leq="<="
  200. Neg="-"
  201. And="and"
  202. Or="or"
  203. Not="not"
  204. Assign="="
  205. [Exceptions Value Expressions DATABASE:NCLUSTER]
  206. Case_Simple=T
  207. Case_Searched=T
  208. Coalesce=T
  209. Nullif=T
  210. Grouping_Sets=F
  211. Rollup=F
  212. Cube=F
  213. Position=T
  214. Char_Length=F
  215. Octet_Length=F
  216. Substring=T
  217. Upper=T
  218. Lower=T
  219. StrCat=T
  220. Cast=C
  221. Abs=T
  222. Floor=T
  223. Ceiling=C
  224. ln=T
  225. Exp=T
  226. Mod=F
  227. Sqrt=T
  228. Power=T
  229. Current_Date=T
  230. ;Unable to get timezone type via ODBC so disabled
  231. Current_Time=F
  232. Current_TimeStamp=F
  233. LocalTime=F
  234. LocalTimestamp=F
  235. Extract=T
  236. Trim=F
  237. Trim_Both_Spaces=C
  238. Trim_Leading_Spaces=C
  239. Trim_Trailing_Spaces=C
  240. Row_Value_Constructors=F
  241. Olap_Window_Order_By=T
  242. [Exceptions General DATABASE:NCLUSTER]
  243. ; due to various limitations they will be considered as not supported
  244. Parameter_Markers=F
  245. Aggregate_In_Expr=T
  246. Aggregate_Value_Expr=T
  247. Correlated_Subqueries=F
  248. Cross_Product=T
  249. Distinct_Aggregates=T
  250. Distinct_Aggr_In_Case=T
  251. Group_By_Expr=T
  252. Group_By_Ordinal=T
  253. Group_By_Alias=F
  254. Multiple_Distinct=T
  255. Count_Non_Distinct=T
  256. Count_Value_Expr=T
  257. Count_Literal=T
  258. Is_Null_Value_Expr=T
  259. Is_Null_Value_Parm=T
  260. Like_Value_Expr=T
  261. Subquery_In_Having=T
  262. Subquery_In_Group_By=T
  263. Subquery_In_Case=T
  264. Count_Blob=T
  265. Expression_In_In=T
  266. Null_Order=T
  267. Olap_Null_Order=T
  268. Olap_Distinct=F
  269. Nested_Olap_Functions=F
  270. Empty_String_Is_Null=F
  271. Order_By_In_Derived_Table=T
  272. Interval_As_VarChar=F
  273. Boolean_Comparison=T
  274. Derived_Column_List=F
  275. With_Column_List=F
  276. Aggr_With_Interval=T
  277. Nested_Case=T
  278. Not_In_Subquery=T
  279. Nulls_Sort_Last=T
  280. Order_By_Alias=T
  281. Order_By_Name=T
  282. Substring_On_Expr=T
  283. Subqueries=T
  284. Subquery_Column_Alias=F
  285. Parameter_In_Select_List=T
  286. Remove_Parameter_Cast=T
  287. Subquery_With_Parameters=T
  288. Like_With_Parameters=T
  289. Like_With_Escape=T
  290. Comments=T
  291. Integer_Division_Truncation=T
  292. [Exceptions Literals DATABASE:NCLUSTER]
  293. Date_Literal=T
  294. Timestamp_Literal=T
  295. Time_Literal=T
  296. Interval_Literal=F
  297. IntervalYM_Literal=F
  298. TimeTZ_Literal=F
  299. TimestampTZ_Literal=F
  300. NChar_Literal=T
  301. [Exceptions Misc DATABASE:NCLUSTER]
  302. [Exceptions Delimiters]
  303. ; The RDBMS is accepting double quotes for quoted identifiers. For non-ODBC based connections
  304. ; enable the appropriate delimeter entries with respect to if catalog, schemas, procedures and
  305. ; table functions would be supported.
  306. ;Catalog_Delimiter="\""
  307. ;Schema_Delimiter="\""
  308. ;Table_Delimiter="\""
  309. ;Column_Delimiter="\""
  310. ;Procedure_Delimiter="\""
  311. ;Wholename_Delimiter="\""
  312. ;Table_Function_PreStr="TABLE( "
  313. ;Table_Function_PostStr=" )"
  314. ; ANSI style dashdash is also supported
  315. Comment_Begin="/* "
  316. Comment_End=" */ "
  317. [Exceptions Separators DATABASE:NCLUSTER]
  318. Catalog_Separator="."
  319. Schema_Separator="."
  320. Table_Separator="."
  321. [Exceptions Blob Expressions DATABASE:NCLUSTER]
  322. Blob_In_Substring=T
  323. Blob_In_Trim=F
  324. Blob_In_StrCat=F
  325. Blob_In_IsNull=F
  326. Blob_In_Substring_Return_Blob=F
  327. ;b stands for boolean.
  328. ;c stands for character.
  329. ;x stands for text.
  330. ;d stands for date.
  331. ;i stands for the interval.
  332. ;n stands for the numeric.
  333. ;s stands for the timestamp.
  334. ;t stands for the time.
  335. ;y stands for time with time zone
  336. ;z stands for timestamp with time zone
  337. [Database Functions DATABASE:NCLUSTER]
  338. n:ceiling(%1n)=CEIL(%1);
  339. ; Aster is not ISO conformant and does not default the trim charater to space it must be specified
  340. c:trim_leading_spaces(%1c)=trim(both ' ' from %1);
  341. c:trim_trailing_spaces(%1c)=trim(trailing ' ' from %1);
  342. c:trim_both_spaces(%1c)=trim(leading ' ' from %1);
  343. [Builtin Functions DATABASE:NCLUSTER]
  344. d:_add_days(%1d,%2n)=cast (%1 + (interval '1 day' * floor(%2)) as date);
  345. d:_add_months(%1d,%2n)=(cast(%1 + (interval '1 month' * floor(%2)) as date));
  346. d:_add_years(%1d,%2n)=cast(%1 + (interval '1 year' * floor(%2)) as date);
  347. d:_first_of_month(%1d)=cast(date_trunc('month', %1) as date);
  348. d:_last_of_month(%1d)=(last_day(%1));
  349. s:_add_days(%1s,%2n)=(%1 + (interval '1 day' * floor(%2)));
  350. s:_add_months(%1s,%2n)=(%1 + (interval '1 month' * floor(%2)));
  351. s:_add_years(%1s,%2n)=(%1 + (interval '1 year' * floor(%2)));
  352. s:_first_of_month(%1s)=%1 - ( EXTRACT( DAY FROM %1 ) * INTERVAL '1 DAY' ) + INTERVAL '1 DAY';
  353. s:_last_of_month(%1s)=%1 - ( EXTRACT( DAY FROM %1 ) * INTERVAL '1 DAY' ) + INTERVAL '1 MONTH';
  354. s:_make_timestamp(%1n,%2n,%3n)=cast(TO_TIMESTAMP('%1-%2-%3','YYYY-MM-DD') as timestamp without time zone);
  355. s:_add_hours(%1s,%2n)=%1 + (INTERVAL '1 hour' * FLOOR(%2));
  356. s:_add_minutes(%1s,%2n)=%1 + (INTERVAL '1 minute' * FLOOR(%2));
  357. s:_add_seconds(%1s,%2n)=%1 + (INTERVAL '1 second' * FLOOR(%2));
  358. n:_days_between(%1ds,%2ds)=cast(%1 as date) - cast(%2 as date);
  359. ;n:_months_between(%1ds,%2ds)=;
  360. n:_years_between(%1ds,%2ds)=((extract(year from %1) - extract(year from %2)));
  361. n:_hours_between(%1ds,%2ds)=cast(extract('epoch' from %2 - %1 ) / 3600 as integer);
  362. n:_minutes_between(%1ds,%2ds)=cast(extract('epoch' from %2 - %1 ) /60 as integer);
  363. n:_seconds_between(%1ds,%2ds)=extract('epoch' from %2 - %1 );
  364. n:_days_to_end_of_month(%1ds)=cast(extract('day' from ((date_trunc('month',%1) + interval '1 month' - interval '1 day') - cast(%1 as date) )) as integer);
  365. n:_day_of_year(%1ds)=cast(extract(doy from %1) as integer);
  366. n:_day_of_week(%1ds, %2n)=(mod(cast(extract(dow from %1) +7-%2 as int),7)+1);
  367. ;n:_age(%1ds)=;
  368. ;n:_ymdint_between(%1ds,%2ds)=;
  369. ; must be iso 8601 compliant
  370. ;n:_week_of_year(%1ds)=;
  371. ;n:_round(%1n, %2n)=;
  372. [Operator Addition]
  373. [Operator Subtraction]
  374. [Operator Multiplication]
  375. [Operator Division]
  376. [Operator Comparison]
  377. [Operator Cast DATABASE:NCLUSTER]
  378. AD=AD,NA
  379. BL=AD,NA
  380. CH=CH,CH:DB,DB:DM,DM:DT,DT:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:TM,TM:TS,TS:VC,VC
  381. DB=DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM
  382. DM=CH,CH:DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:VC,VC
  383. DT=CH,CH:DT,DT:TS,TS:VC,VC
  384. FL=DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM
  385. IT=CH,CH:DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:VC,VC
  386. IV=AD,NA
  387. IY=AD,NA
  388. NA=CH,CH:DB,DB:DM,DM:DT,DT:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:TM,TM:TS,TS:VC,VC
  389. NC=AD,NA
  390. NU=CH,CH:DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:VC,VC
  391. QD=CH,CH:DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:VC,VC
  392. SM=CH,CH:DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:VC,VC
  393. TM=TM,TM
  394. TS=DT,DT:TM,TM:TS,TS
  395. TT=AD,NA
  396. TZ=AD,NA
  397. VC=CH,CH:DB,DB:DM,DM:DT,DT:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:TM,TM:TS,TS:VC,VC
  398. [Directives Session]