cogdmod_iq.ini 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  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: //uda/main/prod/dmd/sgi/odbc35/sybase_iq/cogdmod_iq.ini#4 $
  21. ;
  22. ; Module:
  23. ; cogdmod_iq.ini
  24. ;
  25. ; Purpose:
  26. ; This module contains the Sybase SYBASE IQ information.
  27. ;
  28. ; Notes:
  29. ; Do NOT modify this file. Doing so could result in unknown behavior
  30. ; by the ODBC gateway, possibly resulting in application aborts.
  31. ;
  32. ;
  33. ; General subsections of this file are made based on SYBASE
  34. ; ADAPTIVE SERVER IQ VERSTION 12.
  35. ;
  36. ; ************************************************************************
  37. [Database Functions]
  38. n:size(%1c)=LENGTH(%1);
  39. c:substring(%1c, %2n {, %3n})=SUBSTR(%1, %2 {, %3});
  40. n:ln(%1n)=LOG(%1);
  41. n:position(%1c,%2c)=CHARINDEX(%1,%2);
  42. n:octet_length(%1c)=BYTE_LENGTH(%1);
  43. n:bit_length(%1c)=BYTE_LENGTH(%1) * 8;
  44. ;Because the change we made in odsdb.c (Detail see trakker 321842, change 5574 ),
  45. ;Functions cast_numberToString(),
  46. ;cast_char(), convert_char(), convert_numberToString() are not avaiable, to fix the problem,
  47. ;the following functions are added.
  48. ;
  49. c:cast_numberToString(%1cdinst)=CAST(%1 AS CHAR(254));
  50. c:convert_numberToString(%1cdnst)=\{fn CONVERT(%1,SQL_CHAR)\};
  51. c:convert_char(%1cdnst)=\{fn CONVERT(%1,SQL_CHAR)\};
  52. ;
  53. ; Mappings for casting datatypes to other datatypes
  54. ; Legend:
  55. ; b: boolean
  56. ; c: character string
  57. ; d: date
  58. ; i: interval
  59. ; n: number
  60. ; t: time
  61. ; s: timestamp
  62. ;
  63. n:cast_decimal(%1n{,%2n,%3n})=CAST(%1 as DECIMAL{(%2,%3)});
  64. n:cast_double_precision(%1n)=CAST(%1 as DOUBLE);
  65. n:cast_float(%1n{,%2n})=CAST(%1 as FLOAT{(%2)});
  66. n:cast_integer(%1n)=CAST(%1 as INTEGER);
  67. n:cast_smallint(%1n)=CAST(%1 as SMALLINT);
  68. n:cast_char(%1cdints{,%2n})=CAST(%1 as CHAR{(%2)});
  69. c:cast_varchar(%1cdints, %2n)=CAST(%1 as VARCHAR(%2));
  70. d:cast_date(%1cds)=CAST(%1 AS DATE);
  71. s:cast_timestamp(%1cds)=CAST(%1 AS TIMESTAMP);
  72. t:cast_time(%1ct)=CAST(%1 as TIME);
  73. c:trim_both_spaces(%1c)=TRIM(%1);
  74. c:trim_leading_spaces(%1c)=LTRIM(%1);
  75. c:trim_trailing_spaces(%1c)=RTRIM(%1);
  76. ;Functions required to cast division of integer/numeric to a floating point
  77. n:coguda#cast_division_float(%1n{,%2n})=CAST(%1 as FLOAT{(%2)});
  78. n:coguda#cast_division_double_precision(%1n)=CAST(%1 as DOUBLE);
  79. [Exceptions Aggregates]
  80. Avg="avg"
  81. Count="count"
  82. Count_star="count(*)"
  83. Max="max"
  84. Min="min"
  85. ; ravg
  86. ; rdiff
  87. ; rsum
  88. Stddev="stddev"
  89. Sum="sum"
  90. Variance="variance"
  91. ; xmovingavg
  92. ; xmovingsum
  93. ; xntile
  94. ; xrank
  95. ; xratio
  96. ; xstddev
  97. ; xtertile
  98. ; xvariance
  99. Count_Literal=T
  100. [Exceptions OLAP Functions]
  101. Olap_Max="max"
  102. Olap_Min="min"
  103. Olap_Sum="sum"
  104. Olap_Avg="avg"
  105. Olap_Count="count"
  106. Olap_Count_Star="count(*)"
  107. Olap_Stddev_Pop="stddev_pop"
  108. Olap_Var_Pop="var_pop"
  109. Olap_Stddev_Samp="stddev_samp"
  110. Olap_Var_Samp="var_samp"
  111. Olap_Rank="rank"
  112. Olap_Dense_Rank="dense_rank"
  113. Olap_Percent_Rank="percent_rank"
  114. ;COGCQ00651915
  115. ;Sybase IQ percentile_cont and percentile_disc are based on SQL 92 standard.
  116. ;UDA needs to do local processing.
  117. Olap_Percentile_Cont=
  118. Olap_Percentile_Disc=
  119. Olap_Ntile=""
  120. [Exceptions OLAP Functions DATABASE:SYBASE IQ VERSION:12.60]
  121. Olap_Max=
  122. Olap_Min=
  123. Olap_Sum=
  124. Olap_Avg=
  125. Olap_Count=
  126. Olap_Count_Star=
  127. Olap_Stddev_Pop=
  128. Olap_Var_Pop=
  129. Olap_Stddev_Samp=
  130. Olap_Var_Samp=
  131. Olap_Rank=
  132. Olap_Dense_Rank=
  133. Olap_Percent_Rank=
  134. Olap_Percentile_Cont=
  135. Olap_Percentile_Disc=
  136. Olap_Ntile=
  137. [Exceptions OLAP Functions DATABASE:SYBASE IQ VERSION:12.50]
  138. Olap_Max=
  139. Olap_Min=
  140. Olap_Sum=
  141. Olap_Avg=
  142. Olap_Count=
  143. Olap_Count_Star=
  144. Olap_Stddev_Pop=
  145. Olap_Var_Pop=
  146. Olap_Stddev_Samp=
  147. Olap_Var_Samp=
  148. Olap_Rank=
  149. Olap_Dense_Rank=
  150. Olap_Percent_Rank=
  151. Olap_Percentile_Cont=
  152. Olap_Percentile_Disc=
  153. Olap_Ntile=
  154. [Exceptions Clauses]
  155. From="from"
  156. Group_By="group by"
  157. Having="having"
  158. Qualify=
  159. Where="where"
  160. With=
  161. With_Recursive=
  162. [Exceptions Commands]
  163. Call="call "
  164. Delete="delete "
  165. Insert="insert "
  166. Select="select "
  167. Update="update "
  168. Max_Stmt_Len=
  169. [Exceptions Delimiters]
  170. Catalog_Delimiter="\""
  171. Schema_Delimiter="\""
  172. Table_Delimiter="\""
  173. Column_Delimiter="\""
  174. Procedure_Delimiter="\""
  175. Wholename_Delimiter=""
  176. [Exceptions General]
  177. Aggregate_In_Expr=T
  178. Aggregate_Value_Expr=T
  179. Olap_In_Subquery=F
  180. Boolean_Comparison=F
  181. Correlated_Subqueries=T
  182. Count_Blob=F
  183. Count_Non_Distinct=T
  184. Count_Value_Expr=T
  185. Cross_Product=T
  186. Current_Date=C
  187. Current_Time=F
  188. Current_Timestamp=F
  189. Localtime=C
  190. Localtimestamp=C
  191. Distinct_Aggregates=T
  192. Group_By_Expr=T
  193. Is_Null_Value_Expr=T
  194. Is_Null_Value_Parm=T
  195. Like_Value_Expr=T
  196. Multiple_Distinct=T
  197. ;Null=T
  198. Nulls_Sort_Last=F
  199. ;Union doesn't allow sort by name
  200. Order_By_Name=F
  201. Order_By_Alias=F
  202. Substring_On_Expr=T
  203. Subqueries=T
  204. Subquery_Column_Alias=F
  205. Subquery_In_Case=F
  206. ; Trakker #307169
  207. ; Sybase IQ 12.5 only supports one subquery in the having clause.
  208. ; This is the error message return by Sybase IQ 12.5:
  209. ; General error: A maximum of one subquery predicate per conjunct is supported in this release.
  210. Subquery_In_Having=F
  211. ;cannot specify DISTINCT in window functions
  212. Olap_Distinct=F
  213. ; Constant expression is not supported in partition, order by clauses
  214. Constant_In_Olap_Window=F
  215. ; CQCOGCQ00873398. Order by without window frames raise error
  216. ; [Sybase][ODBC Driver][Sybase IQ]Syntax error - Order By key must be a numeric data in RANGE Window Frame.
  217. Olap_Window_Order_By=F
  218. [Exceptions Joins]
  219. Cross=T
  220. Cross_Syntax=" CROSS JOIN "
  221. Full_Non_Equi_Join=F
  222. Full_Outer=T
  223. Full_Post=""
  224. Full_Pre=""
  225. Full_Syntax=" FULL OUTER JOIN "
  226. Inner=T
  227. Inner_Col_Post=""
  228. Inner_Col_Pre=""
  229. Inner_Syntax=" INNER JOIN "
  230. Inner_Tbl_Restrict=F
  231. Left_Eql=" LEFT OUTER JOIN "
  232. Left_Nested=T
  233. Left_Outer=T
  234. Left_Post=""
  235. Left_Pre=""
  236. Natural=T
  237. Natural_Syntax=" NATURAL JOIN "
  238. Nested_Outer=T
  239. Non_Equi_Joins=T
  240. One_Outer=F
  241. On_Condition_Between_Predicate=T
  242. On_Condition_In_Predicate=T
  243. On_Condition_IsNull_Predicate=T
  244. On_Condition_Like_Predicate=T
  245. On_Condition_Not_Predicate=T
  246. On_Condition_Or_Predicate=T
  247. On_Condition_Set_Functions=F
  248. On_Condition_Subqueries=T
  249. Optnl_Tbl_Filter=T
  250. Optnl_Tbl_Join_Filter=T
  251. Optnl_Tbl_Join_Restrict=F
  252. Outer_Tbl_List=F
  253. Optnl_Tbl_Restrict=F
  254. Outer_Syntax=T
  255. Right_Eql=" RIGHT OUTER JOIN "
  256. Right_Nested=T
  257. Right_Outer=T
  258. Right_Post=""
  259. Right_Pre=""
  260. Two_Sided_Join_Restrict=F
  261. Union_Syntax=""
  262. [Exceptions Literals]
  263. Alt_Date_Literal_Assignment=F
  264. Alt_Date_Literal_Between=F
  265. Alt_Date_Literal_Comparison=F
  266. Alt_Date_Literal_In=F
  267. Alt_Date_Literal_Insert_Value=F
  268. Alt_Date_Literal_Str=
  269. Alt_Interval_Literal_Str=
  270. Alt_Time_Literal_Str=
  271. Alt_Timestamp_Literal_Str=
  272. Boolean_Literal=F
  273. Date_Add_Function_Str=
  274. Date_Format_Str="YYYY MM DD"
  275. Date_Literal=C
  276. Date_Literal_Str="{d '%s-%s-%s'}"
  277. Date_Sub_Function_Str=
  278. False_Literal_Str=
  279. Interval_Format_Str=
  280. Interval_Literal=F
  281. Interval_Literal_Str=
  282. IntervalYM_Format_Str=
  283. IntervalYM_Literal=F
  284. IntervalYM_Literal_Str=
  285. Time_Format_Str="HH MM SS"
  286. Time_Literal=C
  287. Time_Literal_Str="{t '%s:%s:%s'}"
  288. TimeTZ_Format_Str=
  289. TimeTZ_Literal=F
  290. TimeTZ_Literal_Str=
  291. Timestamp_Format_Str="YYYY MM DD HH MM SS"
  292. Timestamp_Literal=C
  293. Timestamp_Literal_Str="{ts '%s-%s-%s %s:%s:%s'}"
  294. TimestampTZ_Format_Str=
  295. TimestampTZ_Literal=F
  296. TimestampTZ_Literal_Str=
  297. True_Literal_Str=
  298. Unknown_Literal_Str=
  299. Zero_Date_Literal_Str=
  300. Zero_Timestamp_Literal_Str=
  301. [Exceptions Literals DATABASE:SYBASE IQ VERSION:11.05]
  302. ; Entries added to overwrite corresponding flags
  303. ; in the Sybase database information file.
  304. Date_Literal=C
  305. Date_Format_Str="MMM DD YYYY"
  306. Date_Literal_Str="convert(datetime,'%s %s %s')"
  307. Time_Literal=C
  308. Time_Format_Str="HH MM SS FFF"
  309. Time_Literal_Str="'%s:%s:%s:%s'"
  310. [Exceptions Operators]
  311. Add="+"
  312. And="and"
  313. Div="/"
  314. Eql="="
  315. Geq=">="
  316. Grt=">"
  317. Leq="<="
  318. Les="<"
  319. Mul="*"
  320. ;Neg="-"
  321. Neq="<>"
  322. Not="not"
  323. Or="or"
  324. Sub="-"
  325. [Exceptions Predicates]
  326. All="all "
  327. Any="any "
  328. Exists="exists "
  329. [Exceptions Predicates DATABASE:SYBASE IQ VERSION:12.50]
  330. All=
  331. Any=
  332. [Exceptions Predicates DATABASE:SYBASE IQ VERSION:12.40]
  333. All=
  334. Any=
  335. [Exceptions Separators]
  336. Catalog_Separator="."
  337. Schema_Separator="."
  338. Table_Separator="."
  339. [Exceptions Set Operators]
  340. Distinct="distinct"
  341. Except=
  342. Except_All=F
  343. Intersect=
  344. Intersect_All=F
  345. Union="union"
  346. Union_All=T
  347. [Exceptions Tables]
  348. ;Trakker #521422
  349. ;Sybase IQ does has problem about derived table for 12.60 and they claim that the problem will get fixed by 12.70.
  350. Derived=T
  351. Joined=F
  352. Simple=T
  353. UniqueName_Prefix="coguda"
  354. Tbl_Ref_Limit="512"
  355. [Exceptions Tables DATABASE:SYBASE IQ VERSION:12.60]
  356. Derived=F
  357. Tbl_Ref_Limit="128"
  358. [Exceptions Tables DATABASE:SYBASE IQ VERSION:12.50]
  359. Derived=F
  360. Tbl_Ref_Limit="128"
  361. [Exceptions Tables DATABASE:SYBASE IQ VERSION:12.40]
  362. Derived=F
  363. Tbl_Ref_Limit="128"
  364. [Exceptions Value Expressions]
  365. Abs=T
  366. Bit_Length=C
  367. ;Trakker 276769 fix set case=F since SYBASE IQ 12.03 raises "Internal Error"
  368. ;if searched case is used in a subquery.
  369. ;Change case =T, Case statements are pushed down to database against Sybase IQ 12.4.2 fix
  370. ;trakker 315198. Retested test cases for trakker 276769,subquery case statements
  371. ;are pushed down to database properly.
  372. ;Trakker 479268, Sybase IQ failed to convert from SQL_C_CHAR to SQL_NUMERIC with error "Data conversion failed"
  373. ;This problem prevents UDA to retrieve a blob from database
  374. Case=T
  375. Case_Simple=T
  376. Cast=T
  377. Ceiling=T
  378. Char_Length=T
  379. Coalesce=T
  380. Exp=T
  381. Extract=C
  382. Floor=T
  383. Lower=T
  384. Ln=C
  385. Mod=T
  386. Nullif=T
  387. Octet_Length=C
  388. Position=C
  389. Power=T
  390. Sqrt=T
  391. StrCat=T
  392. Substring=C
  393. Upper=T
  394. Trim=F
  395. Trim_Both_Spaces=C
  396. Trim_Leading_Spaces=C
  397. Trim_Trailing_Spaces=C
  398. ;
  399. ; Extract=C, above, indicates that SQL'92 EXTRACT functionality is [partially]
  400. ; supported by Sybase IQ through the use of the following function maps.
  401. ;
  402. ; EXTRACT( YEAR FROM <dateColumn> )' maps to coguda#extract_year( <dateexpr> ).
  403. ;
  404. Extract_Year=coguda#extract_year
  405. Extract_Month=coguda#extract_month
  406. Extract_Day=coguda#extract_day
  407. Extract_Hours=coguda#extract_hour
  408. Extract_Minutes=coguda#extract_minute
  409. Extract_Seconds=coguda#extract_second
  410. [Exceptions Tables DATABASE:SYBASE IQ VERSION:12.50]
  411. Coalesce=F
  412. [Exceptions Tables DATABASE:SYBASE IQ VERSION:12.40]
  413. Coalesce=F
  414. [Operator Addition]
  415. Date=
  416. Time=
  417. Timestamp=
  418. Interval=
  419. [Operator Subtraction]
  420. Date=
  421. Time=
  422. Timestamp=
  423. Interval=
  424. [Builtin Functions]
  425. n:_round(%1n,%2n)=ROUND(%1, %2);
  426. d:current_date()=CURRENT DATE;
  427. t:localtime({%1n})=CURRENT TIME;
  428. s:localtimestamp({%1n})=CURRENT TIMESTAMP;
  429. n:ascii(%1c)=ascii(%1);
  430. n:round(%1n,%2n)=round(%1,%2);
  431. ;
  432. ; Business Functions for Date Calculations
  433. ;
  434. s:_add_days(%1s,%2n)=DATEADD( DAY, %2, %1 );
  435. d:_add_days(%1d,%2n)=DATEADD( DAY, %2, %1 );
  436. s:_add_months(%1s,%2n)=DATEADD( MONTH, %2, %1 );
  437. d:_add_months(%1d,%2n)=DATEADD( MONTH, %2, %1 );
  438. s:_add_years(%1s,%2n)=DATEADD( YEAR, %2, %1 );
  439. d:_add_years(%1d,%2n)=DATEADD( YEAR, %2, %1 );
  440. n:_days_between(%1ds,%2ds)=DATEDIFF( DAY, %2, %1 );
  441. n:_months_between(%1ds,%2ds)=DATEDIFF( MONTH, %2, %1 );
  442. n:_years_between(%1ds,%2ds)=DATEDIFF( YEAR, %2, %1 );
  443. n:_days_to_end_of_month(%1ds)=DATEDIFF( DAY, %1, DATEADD( DAY, -1, DATEADD( MONTH, 1, DATEADD( DAY, 1 - DATEPART( DAY, %1 ), %1 ) ) ) );
  444. n:_age(%1ds)=;
  445. d:_first_of_month(%1d)=DATEADD( DAY, -DATEPART( DAY, %1 ) + 1, %1 );
  446. s:_first_of_month(%1s)=DATEADD( DAY, -DATEPART( DAY, %1 ) + 1, %1 );
  447. d:_last_of_month(%1d)=DATEADD( DAY, -1, DATEADD( MONTH, 1, DATEADD( DAY, -DAY( %1 ) + 1, %1 ) ) );
  448. s:_last_of_month(%1s)=DATEADD( DAY, -1, DATEADD( MONTH, 1, DATEADD( DAY, -DAY( %1 ) + 1, %1 ) ) );
  449. s:_make_timestamp(%1n,%2n,%3n)=CAST( YMD(%1, %2, %3 ) AS TIMESTAMP );
  450. n:_ymdint_between(%1ds,%2ds)=;
  451. n:_day_of_year(%1ds)=DATEPART( DAYOFYEAR, %1 );
  452. n:_week_of_year(%1ds)=DATEPART( CALWEEKOFYEAR, %1 );
  453. n:_day_of_week(%1ds,%2n)=(MOD(( MOD(( DATEPART( WEEKDAY, %1 ) + 5 ), 7 ) - %2 + 8 ), 7) + 1);
  454. ;
  455. ; Additional Business Functions for Date Calculations
  456. ;
  457. s:_add_hours(%1s,%2n)=DATEADD( HOUR, %2, %1 );
  458. t:_add_hours(%1t,%2n)=DATEADD( HOUR, %2, %1 );
  459. s:_add_minutes(%1s,%2n)=DATEADD( MINUTE, %2, %1 );
  460. t:_add_minutes(%1t,%2n)=DATEADD( MINUTE, %2, %1 );
  461. s:_add_seconds(%1s,%2n)=DATEADD( SECOND, %2, %1 );
  462. t:_add_seconds(%1t,%2n)=DATEADD( SECOND, %2, %1 );
  463. n:_hours_between(%1ds,%2ds)=DATEDIFF( HOUR, %2, %1 );
  464. n:_minutes_between(%1ds,%2ds)=DATEDIFF( MINUTE, %2, %1 );
  465. n:_seconds_between(%1ds,%2ds)=DATEDIFF( SECOND, %2, %1 );
  466. ;
  467. ; Functions required by EXTRACT.
  468. ;
  469. n:coguda#extract_year(%1ds)=DATEPART(YEAR, %1);
  470. n:coguda#extract_month(%1ds)=DATEPART(MONTH, %1);
  471. n:coguda#extract_day(%1ds)=DATEPART(DAY, %1);
  472. n:coguda#extract_hour(%1st)=DATEPART(HOUR, %1);
  473. n:coguda#extract_minute(%1st)=DATEPART(MINUTE, %1);
  474. n:coguda#extract_second(%1s)=DATEPART(SECOND, %1) + (DATEPART(MILLISECOND, %1 ) / 1000.0);
  475. n:coguda#extract_second(%1t)=DATEPART(SECOND, %1);
  476. [DATABASE:SYBASE IQ VERSION:12.60]
  477. ; When connecting to Sybase IQ 12.6 read the subtype of <Version:12.6>
  478. DBINFO_SUBTYPE="Version:12.6"
  479. [DATABASE:SYBASE IQ VERSION:12.50]
  480. ; When connecting to Sybase IQ 12.5 read the subtype of <Version:12.5>
  481. DBINFO_SUBTYPE="Version:12.5"
  482. Convert To Blob Limit="255"
  483. [DATABASE:SYBASE IQ VERSION:12.40]
  484. ; When connecting to Sybase IQ 12.4 read the subtype of <Version:12.4>
  485. DBINFO_SUBTYPE="Version:12.4"
  486. Convert To Blob Limit="255"
  487. [DATABASE:SYBASE IQ VERSION:12.00]
  488. DBINFO_SUBTYPE="Version:12.0"
  489. Convert To Blob Limit="255"
  490. [DATABASE:SYBASE IQ VERSION:11.05]
  491. DBINFO_SUBTYPE="Version:11.5"
  492. [DATABASE:SYBASE IQ VERSION:11.09]
  493. DBINFO_SUBTYPE="Version:11.9"
  494. [DATABASE:SYBASE IQ VERSION:11.00]
  495. DBINFO_SUBTYPE="Version:11.0"
  496. [DATABASE:SYBASE IQ]
  497. SQL_API_SQLDESCRIBEPARAM="FALSE"
  498. SQL_API_SQLSPECIALCOLUMNS="FALSE"
  499. ;
  500. ; Table Type
  501. ;
  502. System Views="'SYSTEM VIEW'"
  503. DBINFO_SUBSECTIONS="DBNAM,DRVREV"
  504. [DATABASE:ADAPTIVE SERVER ANYWHERE]
  505. SQL_DBMS_NAME="SYBASE IQ"
  506. [DATABASE:ADAPTIVE SERVER IQ]
  507. SQL_DBMS_NAME="SYBASE IQ"
  508. ;
  509. ; Operations supported and results of the supported operation.
  510. ; The format is;
  511. ; [Operator <operator name>]
  512. ; <LHS>=<RHS>,<RES>{:<RHS>,<RES>}
  513. ;
  514. ; where
  515. ;
  516. ; LHS = data type of left hand side of operation
  517. ; RHS = data type of right hand side of operation
  518. ; RES = result data type of operation
  519. ;
  520. ; LHS, RHS and RES values may be one of:
  521. ;
  522. ; Name Abbreviation DMS Data Type
  523. ; CHAR CH sqlChar
  524. ; VARCHAR VC sqlVarChar
  525. ; LVARCHAR LC sqlLongVarChar
  526. ; NCHAR NC sqlNChar
  527. ; NVARCHAR NV sqlNVarChar
  528. ; BINARY BN sqlBinary
  529. ; VARBINARY VB sqlVarBinary
  530. ; BOOLEAN BO sqlBoolean
  531. ; SMALLINT SM sqlSmallInt
  532. ; INTEGER IT sqlInteger
  533. ; QUAD QD sqlQuad
  534. ; DECIMAL DM sqlDecimal
  535. ; NUMERIC NU sqlNumeric
  536. ; FLOAT FL sqlFloat
  537. ; DOUBLE DB sqlDouble
  538. ; DATE DT sqlDate
  539. ; TIME TM sqlTime
  540. ; TIMESTAMP TS sqlDateTime
  541. ; INTERVAL IV sqlInterval
  542. ; TIME_TZ TT sqlTimeTZ
  543. ; TIMESTAMP_TZ TZ sqlTimestampTZ
  544. ; INTERVAL_YM IY sqlIntervalYM
  545. ; TEXT TX sqlText
  546. ; BLOB BL sqlBlob
  547. ; ALL DATATYPES AD -------------
  548. ; ---- NA sqlUnknownType
  549. ;
  550. [Operator Comparison]
  551. DT=DT,OK:TS,OK
  552. TS=DT,OK:TS,OK
  553. [Operator Cast]
  554. AD=NC,NA:NV,NA:IV,NA:TT,NA:TZ,NA
  555. [Directives Session]
  556. ;
  557. ; Row Limit in Sybase IQ Server is achieved by adding
  558. ; the following line: TOP n right after the first SELECT or SELECT DISTINCT
  559. ;
  560. ; The Row Limit in Sybase IQ Server is
  561. ; supported from version 12.5 and up
  562. ;
  563. Query_Row_Limit_Pos=Append_Distinct
  564. Query_Row_Limit_Text=" TOP %d "
  565. [Directives Session DATABASE:SYBASE IQ VERSION:12.40]
  566. Query_Row_Limit_Pos=
  567. Query_Row_Limit_Text=