ibase60.pp 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204
  1. unit ibase60;
  2. {$mode objfpc}
  3. interface
  4. {$linklib c}
  5. {$linklib gds}
  6. type
  7. { Unsigned types }
  8. UChar = Byte;
  9. UShort = Word;
  10. UInt = DWord;
  11. ULong = DWord;
  12. { Signed types }
  13. Int = LongInt;
  14. Long = LongInt;
  15. Short = Integer;
  16. Float = Single;
  17. { Pointers to basic types }
  18. PByte = ^Byte;
  19. PInt = ^Int;
  20. PShort = ^Short;
  21. PUShort = ^UShort;
  22. PLong = ^Long;
  23. PULong = ^ULong;
  24. PFloat = ^Float;
  25. PUChar = ^UChar;
  26. PVoid = ^Pointer;
  27. PSmallint = ^Smallint;
  28. PWOrd = ^Word;
  29. {$PACKRECORDS C}
  30. const
  31. ISC_TRUE = 1;
  32. ISC_FALSE = 0;
  33. const
  34. ISC__TRUE = ISC_TRUE;
  35. ISC__FALSE = ISC_FALSE;
  36. Type
  37. ISC_USHORT = word;
  38. ISC_STATUS = longint;
  39. ISC_INT64 = int64;
  40. ISC_UINT64 = qword;
  41. ISC_LONG = Longint;
  42. PISC_USHORT = ^ISC_USHORT;
  43. PISC_STATUS = ^ISC_STATUS;
  44. PPISC_STATUS = ^PISC_STATUS;
  45. PISC_INT64 = ^ISC_INT64;
  46. PISC_UINT64 = ^ISC_UINT64;
  47. PISC_LONG = ^ISC_LONG;
  48. const
  49. DSQL_close = 1;
  50. DSQL_drop = 2;
  51. {!!MVC
  52. Removed all ISC_FAR, ISC_EXPORT_VARARG and ISC_EXPORT
  53. macros.
  54. They confuse h2pas...
  55. !!MVC }
  56. { }
  57. { Time & Date Support }
  58. { }
  59. {$ifndef _ISC_TIMESTAMP_}
  60. type
  61. ISC_DATE = longint;
  62. ISC_TIME = dword;
  63. ISC_TIMESTAMP = record
  64. timestamp_date : ISC_DATE;
  65. timestamp_time : ISC_TIME;
  66. end;
  67. TISC_DATE = ISC_DATE;
  68. TISC_TIME = ISC_TIME;
  69. TISC_TIMESTAMP = ISC_TIMESTAMP;
  70. PISC_DATE = ^ISC_DATE;
  71. PISC_TIME = ^ISC_TIME;
  72. PISC_TIMESTAMP = ^ISC_TIMESTAMP;
  73. const
  74. _ISC_TIMESTAMP_ = 1;
  75. {$endif}
  76. const
  77. ISC_TIME_SECONDS_PRECISION = 10000;
  78. ISC_TIME_SECONDS_PRECISION_SCALE = -4;
  79. { }
  80. { Blob id structure }
  81. { }
  82. Type
  83. GDS_QUAD = record
  84. gds_quad_high : ISC_LONG;
  85. gds_quad_low : ISC_LONG;
  86. end;
  87. TGDS_QUAD = GDS_QUAD;
  88. PGDS_QUAD = ^GDS_QUAD;
  89. Type
  90. ISC_QUAD = GDS_QUAD;
  91. TISC_QUAD = ISC_QUAD;
  92. PISC_QUAD = ^ISC_QUAD;
  93. { !!field redefinitions !!
  94. isc_quad_high = gds_quad_high;
  95. isc_quad_low = gds_quad_low;
  96. }
  97. type
  98. ISC_ARRAY_BOUND = record
  99. array_bound_lower : smallint;
  100. array_bound_upper : smallint;
  101. end;
  102. TISC_ARRAY_BOUND = ISC_ARRAY_BOUND;
  103. PISC_ARRAY_BOUND = ^ISC_ARRAY_BOUND;
  104. ISC_ARRAY_DESC = record
  105. array_desc_dtype : byte;
  106. array_desc_scale : char;
  107. array_desc_length : word;
  108. array_desc_field_name : array[0..31] of char;
  109. array_desc_relation_name : array[0..31] of char;
  110. array_desc_dimensions : smallint;
  111. array_desc_flags : smallint;
  112. array_desc_bounds : array[0..15] of ISC_ARRAY_BOUND;
  113. end;
  114. TISC_ARRAY_DESC = ISC_ARRAY_DESC;
  115. PISC_ARRAY_DESC = ^ISC_ARRAY_DESC;
  116. ISC_BLOB_DESC = record
  117. blob_desc_subtype : smallint;
  118. blob_desc_charset : smallint;
  119. blob_desc_segment_size : smallint;
  120. blob_desc_field_name : array[0..31] of byte;
  121. blob_desc_relation_name : array[0..31] of byte;
  122. end;
  123. TISC_BLOB_DESC = ISC_BLOB_DESC;
  124. PISC_BLOB_DESC = ^ISC_BLOB_DESC ;
  125. { }
  126. { Blob control structure }
  127. { }
  128. {!!MVC
  129. !!MVC }
  130. { Source filter }
  131. {!!MVC
  132. !!MVC }
  133. { Argument to pass to source }
  134. { filter }
  135. { Target type }
  136. { Source type }
  137. { Length of buffer }
  138. { Length of current segment }
  139. { Length of blob parameter }
  140. { block }
  141. { Address of blob parameter }
  142. { block }
  143. { Address of segment buffer }
  144. { Length of longest segment }
  145. { Total number of segments }
  146. { Total length of blob }
  147. { Address of status vector }
  148. { Application specific data }
  149. TCTLSourceFunction = function : isc_long;
  150. PISC_BLOB_CTL = ^ISC_BLOB_CTL ;
  151. ISC_BLOB_CTL = record
  152. ctl_source : TCTLSourceFunction; // was ISC_STATUS ( *ctl_source)();
  153. ctl_source_handle : pisc_blob_ctl ; // was struct isc_blob_ctl * ctl_source_handle;
  154. ctl_to_sub_type : smallint;
  155. ctl_from_sub_type : smallint;
  156. ctl_buffer_length : word;
  157. ctl_segment_length : word;
  158. ctl_bpb_length : word;
  159. ctl_bpb : Pchar;
  160. ctl_buffer : Pbyte;
  161. ctl_max_segment : ISC_LONG;
  162. ctl_number_segments : ISC_LONG;
  163. ctl_total_length : ISC_LONG;
  164. ctl_status : PISC_STATUS;
  165. ctl_data : array[0..7] of longint;
  166. end;
  167. TISC_BLOB_CTL = ISC_BLOB_CTL;
  168. { }
  169. { Blob stream definitions }
  170. { }
  171. { Blob handle }
  172. { Address of buffer }
  173. { Next character }
  174. { Length of buffer }
  175. { Characters in buffer }
  176. { (mode) ? OUTPUT : INPUT }
  177. BSTREAM = record
  178. bstr_blob : pointer;
  179. bstr_buffer : Pchar;
  180. bstr_ptr : Pchar;
  181. bstr_length : smallint;
  182. bstr_cnt : smallint;
  183. bstr_mode : char;
  184. end;
  185. TBSTREAM = BSTREAM;
  186. PBstream = ^BSTREAM;
  187. {!!MVC
  188. #define getb(p) (--(p)->bstr_cnt >= 0 ? (p)->bstr_ptr++ & 0377: BLOB_get (p))
  189. #define putb(x,p) (((x) == '\n' || (!(--(p)->bstr_cnt))) ? BLOB_put ((x),p) : ((int) ( (p)->bstr_ptr++ = (unsigned) (x))))
  190. #define putbx(x,p) ((!(--(p)->bstr_cnt)) ? BLOB_put ((x),p) : ((int) ( (p)->bstr_ptr++ = (unsigned) (x))))
  191. !!MVC }
  192. { }
  193. { Dynamic SQL definitions }
  194. { }
  195. { }
  196. { Declare the extended SQLDA }
  197. { }
  198. { datatype of field }
  199. { scale factor }
  200. { datatype subtype - BLOBs & Text }
  201. { types only }
  202. { length of data area }
  203. { address of data }
  204. { address of indicator variable }
  205. { length of sqlname field }
  206. { name of field, name length + space }
  207. { for NULL }
  208. { length of relation name }
  209. { field's relation name + space for }
  210. { NULL }
  211. { length of owner name }
  212. { relation's owner name + space for }
  213. { NULL }
  214. { length of alias name }
  215. { relation's alias name + space for }
  216. { NULL }
  217. XSQLVAR = record
  218. sqltype : smallint;
  219. sqlscale : smallint;
  220. sqlsubtype : smallint;
  221. sqllen : smallint;
  222. sqldata : Pchar;
  223. sqlind : Psmallint;
  224. sqlname_length : smallint;
  225. sqlname : array[0..31] of char;
  226. relname_length : smallint;
  227. relname : array[0..31] of char;
  228. ownname_length : smallint;
  229. ownname : array[0..31] of char;
  230. aliasname_length : smallint;
  231. aliasname : array[0..31] of char;
  232. end;
  233. TXSQLVAR = XSQLVAR;
  234. PXSQLVAR =^XSQLVAR;
  235. { version of this XSQLDA }
  236. { XSQLDA name field }
  237. { length in bytes of SQLDA }
  238. { number of fields allocated }
  239. { actual number of fields }
  240. { first field address }
  241. XSQLDA = record
  242. version : smallint;
  243. sqldaid : array[0..7] of char;
  244. sqldabc : ISC_LONG;
  245. sqln : smallint;
  246. sqld : smallint;
  247. sqlvar : array[0..0] of XSQLVAR;
  248. end;
  249. TXSQLDA = XSQLDA;
  250. PXSQLDA =^XSQLDA;
  251. { was #define dname(params) def_expr }
  252. { argument types are unknown }
  253. { return type might be wrong }
  254. Const
  255. XSQLDA_LENGTH = sizeof(XSQLDA);
  256. { return type might be wrong }
  257. const
  258. SQLDA_VERSION1 = 1;
  259. { meaning is same as DIALECT_xsqlda }
  260. SQL_DIALECT_V5 = 1;
  261. { flagging anything that is delimited
  262. by double quotes as an error and
  263. flagging keyword DATE as an error }
  264. SQL_DIALECT_V6_TRANSITION = 2;
  265. { supports SQL delimited identifier,
  266. SQLDATE/DATE, TIME, TIMESTAMP,
  267. CURRENT_DATE, CURRENT_TIME,
  268. CURRENT_TIMESTAMP, and 64-bit exact
  269. numeric type }
  270. SQL_DIALECT_V6 = 3;
  271. { latest IB DIALECT }
  272. SQL_DIALECT_CURRENT = SQL_DIALECT_V6;
  273. { }
  274. { InterBase Handle Definitions }
  275. { }
  276. type
  277. isc_att_handle = pointer;
  278. isc_blob_handle = pointer;
  279. isc_db_handle = pointer;
  280. isc_form_handle = pointer;
  281. isc_req_handle = pointer;
  282. isc_stmt_handle = pointer;
  283. isc_svc_handle = pointer;
  284. isc_tr_handle = pointer;
  285. isc_win_handle = pointer;
  286. isc_callback = procedure ;cdecl;
  287. isc_resv_handle = ISC_LONG;
  288. tisc_att_handle = isc_att_handle;
  289. tisc_blob_handle = isc_blob_handle;
  290. tisc_db_handle = isc_db_handle;
  291. tisc_form_handle = isc_form_handle;
  292. tisc_req_handle = isc_req_handle;
  293. tisc_stmt_handle = isc_stmt_handle;
  294. tisc_svc_handle = isc_svc_handle;
  295. tisc_tr_handle = isc_tr_handle;
  296. tisc_win_handle = isc_win_handle;
  297. tisc_callback = isc_callback;
  298. tisc_resv_handle = isc_resv_handle;
  299. pisc_att_handle =^isc_att_handle ;
  300. pisc_blob_handle =^isc_blob_handle ;
  301. pisc_db_handle =^isc_db_handle ;
  302. pisc_form_handle =^isc_form_handle ;
  303. pisc_req_handle =^isc_req_handle ;
  304. pisc_stmt_handle =^isc_stmt_handle ;
  305. pisc_svc_handle =^isc_svc_handle ;
  306. pisc_tr_handle =^isc_tr_handle ;
  307. pisc_win_handle =^isc_win_handle ;
  308. pisc_callback = ^isc_callback;
  309. pisc_resv_handle =^isc_resv_handle ;
  310. { }
  311. { OSRI database functions }
  312. { }
  313. function isc_attach_database(_para1:PISC_STATUS; _para2:smallint; _para3:Pchar; _para4:Pisc_db_handle; _para5:smallint;
  314. _para6:Pchar):ISC_STATUS; cdecl; external;
  315. function isc_array_gen_sdl(_para1:PISC_STATUS; _para2:PISC_ARRAY_DESC; _para3:Psmallint; _para4:Pchar; _para5:Psmallint):ISC_STATUS; cdecl; external;
  316. function isc_array_get_slice(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:PISC_QUAD; _para5:PISC_ARRAY_DESC;
  317. _para6:pointer; _para7:PISC_LONG):ISC_STATUS; cdecl; external;
  318. function isc_array_lookup_bounds(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pchar; _para5:Pchar;
  319. _para6:PISC_ARRAY_DESC):ISC_STATUS; cdecl; external;
  320. function isc_array_lookup_desc(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pchar; _para5:Pchar;
  321. _para6:PISC_ARRAY_DESC):ISC_STATUS; cdecl; external;
  322. function isc_array_set_desc(_para1:PISC_STATUS; _para2:Pchar; _para3:Pchar; _para4:Psmallint; _para5:Psmallint;
  323. _para6:Psmallint; _para7:PISC_ARRAY_DESC):ISC_STATUS; cdecl; external;
  324. function isc_array_put_slice(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:PISC_QUAD; _para5:PISC_ARRAY_DESC;
  325. _para6:pointer; _para7:PISC_LONG):ISC_STATUS; cdecl; external;
  326. procedure isc_blob_default_desc(_para1:PISC_BLOB_DESC; _para2:Pbyte; _para3:Pbyte); cdecl; external;
  327. function isc_blob_gen_bpb(_para1:PISC_STATUS; _para2:PISC_BLOB_DESC; _para3:PISC_BLOB_DESC; _para4:word; _para5:Pbyte;
  328. _para6:Pword):ISC_STATUS; cdecl; external;
  329. function isc_blob_info(_para1:PISC_STATUS; _para2:Pisc_blob_handle; _para3:smallint; _para4:Pchar; _para5:smallint;
  330. _para6:Pchar):ISC_STATUS; cdecl; external;
  331. function isc_blob_lookup_desc(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pbyte; _para5:Pbyte;
  332. _para6:PISC_BLOB_DESC; _para7:Pbyte):ISC_STATUS; cdecl; external;
  333. function isc_blob_set_desc(_para1:PISC_STATUS; _para2:Pbyte; _para3:Pbyte; _para4:smallint; _para5:smallint;
  334. _para6:smallint; _para7:PISC_BLOB_DESC):ISC_STATUS; cdecl; external;
  335. function isc_cancel_blob(_para1:PISC_STATUS; _para2:Pisc_blob_handle):ISC_STATUS; cdecl; external;
  336. function isc_cancel_events(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:PISC_LONG):ISC_STATUS; cdecl; external;
  337. function isc_close_blob(_para1:PISC_STATUS; _para2:Pisc_blob_handle):ISC_STATUS; cdecl; external;
  338. function isc_commit_retaining(_para1:PISC_STATUS; _para2:Pisc_tr_handle):ISC_STATUS; cdecl; external;
  339. function isc_commit_transaction(_para1:PISC_STATUS; _para2:Pisc_tr_handle):ISC_STATUS; cdecl; external;
  340. function isc_create_blob(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pisc_blob_handle; _para5:PISC_QUAD):ISC_STATUS; cdecl; external;
  341. function isc_create_blob2(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pisc_blob_handle; _para5:PISC_QUAD;
  342. _para6:smallint; _para7:Pchar):ISC_STATUS; cdecl; external;
  343. function isc_create_database(_para1:PISC_STATUS; _para2:smallint; _para3:Pchar; _para4:Pisc_db_handle; _para5:smallint;
  344. _para6:Pchar; _para7:smallint):ISC_STATUS; cdecl; external;
  345. function isc_database_info(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:smallint; _para4:Pchar; _para5:smallint;
  346. _para6:Pchar):ISC_STATUS; cdecl; external;
  347. procedure isc_decode_date(_para1:PISC_QUAD; _para2:pointer); cdecl; external;
  348. procedure isc_decode_sql_date(_para1:PISC_DATE; _para2:pointer); cdecl; external;
  349. procedure isc_decode_sql_time(_para1:PISC_TIME; _para2:pointer); cdecl; external;
  350. procedure isc_decode_timestamp(_para1:PISC_TIMESTAMP; _para2:pointer); cdecl; external;
  351. function isc_detach_database(_para1:PISC_STATUS; _para2:Pisc_db_handle):ISC_STATUS; cdecl; external;
  352. function isc_drop_database(_para1:PISC_STATUS; _para2:Pisc_db_handle):ISC_STATUS; cdecl; external;
  353. function isc_dsql_allocate_statement(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_stmt_handle):ISC_STATUS; cdecl; external;
  354. function isc_dsql_alloc_statement2(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_stmt_handle):ISC_STATUS; cdecl; external;
  355. function isc_dsql_describe(_para1:PISC_STATUS; _para2:Pisc_stmt_handle; _para3:word; _para4:PXSQLDA):ISC_STATUS; cdecl; external;
  356. function isc_dsql_describe_bind(_para1:PISC_STATUS; _para2:Pisc_stmt_handle; _para3:word; _para4:PXSQLDA):ISC_STATUS; cdecl; external;
  357. function isc_dsql_exec_immed2(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:word; _para5:Pchar;
  358. _para6:word; _para7:PXSQLDA; _para8:PXSQLDA):ISC_STATUS; cdecl; external;
  359. function isc_dsql_execute(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pisc_stmt_handle; _para4:word; _para5:PXSQLDA):ISC_STATUS; cdecl; external;
  360. function isc_dsql_execute2(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pisc_stmt_handle; _para4:word; _para5:PXSQLDA;
  361. _para6:PXSQLDA):ISC_STATUS; cdecl; external;
  362. function isc_dsql_execute_immediate(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:word; _para5:Pchar;
  363. _para6:word; _para7:PXSQLDA):ISC_STATUS; cdecl; external;
  364. function isc_dsql_fetch(_para1:PISC_STATUS; _para2:Pisc_stmt_handle; _para3:word; _para4:PXSQLDA):ISC_STATUS; cdecl; external;
  365. function isc_dsql_finish(_para1:Pisc_db_handle):ISC_STATUS; cdecl; external;
  366. function isc_dsql_free_statement(_para1:PISC_STATUS; _para2:Pisc_stmt_handle; _para3:word):ISC_STATUS; cdecl; external;
  367. function isc_dsql_insert(_para1:PISC_STATUS; _para2:Pisc_stmt_handle; _para3:word; _para4:PXSQLDA):ISC_STATUS; cdecl; external;
  368. function isc_dsql_prepare(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pisc_stmt_handle; _para4:word; _para5:Pchar;
  369. _para6:word; _para7:PXSQLDA):ISC_STATUS; cdecl; external;
  370. function isc_dsql_set_cursor_name(_para1:PISC_STATUS; _para2:Pisc_stmt_handle; _para3:Pchar; _para4:word):ISC_STATUS; cdecl; external;
  371. function isc_dsql_sql_info(_para1:PISC_STATUS; _para2:Pisc_stmt_handle; _para3:smallint; _para4:Pchar; _para5:smallint;
  372. _para6:Pchar):ISC_STATUS; cdecl; external;
  373. procedure isc_encode_date(_para1:pointer; _para2:PISC_QUAD); cdecl; external;
  374. procedure isc_encode_sql_date(_para1:pointer; _para2:PISC_DATE); cdecl; external;
  375. procedure isc_encode_sql_time(_para1:pointer; _para2:PISC_TIME); cdecl; external;
  376. procedure isc_encode_timestamp(_para1:pointer; _para2:PISC_TIMESTAMP); cdecl; external;
  377. function isc_event_block(_para1:PPchar; _para2:PPchar; _para3:word; args:array of const):ISC_LONG; cdecl; external;
  378. {!!MVC
  379. void isc_event_counts (unsigned ISC_LONG ,
  380. short,
  381. char ,
  382. char ); cdecl; external;
  383. !!MVC }
  384. procedure isc_expand_dpb(_para1:PPchar; _para2:Psmallint; args:array of const); cdecl; external;
  385. function isc_modify_dpb(_para1:PPchar; _para2:Psmallint; _para3:word; _para4:Pchar; _para5:smallint):longint; cdecl; external;
  386. function isc_free(_para1:Pchar):ISC_LONG; cdecl; external;
  387. function isc_get_segment(_para1:PISC_STATUS; _para2:Pisc_blob_handle; _para3:Pword; _para4:word; _para5:Pchar):ISC_STATUS; cdecl; external;
  388. function isc_get_slice(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:PISC_QUAD; _para5:smallint;
  389. _para6:Pchar; _para7:smallint; _para8:PISC_LONG; _para9:ISC_LONG; _para10:pointer;
  390. _para11:PISC_LONG):ISC_STATUS; cdecl; external;
  391. function isc_interprete(_para1:Pchar; _para2:PPISC_STATUS):ISC_STATUS; cdecl; external;
  392. function isc_open_blob(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pisc_blob_handle; _para5:PISC_QUAD):ISC_STATUS; cdecl; external;
  393. function isc_open_blob2(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pisc_blob_handle; _para5:PISC_QUAD;
  394. _para6:smallint; _para7:Pchar):ISC_STATUS; cdecl; external;
  395. function isc_prepare_transaction2(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:smallint; _para4:Pchar):ISC_STATUS; cdecl; external;
  396. procedure isc_print_sqlerror(_para1:smallint; _para2:PISC_STATUS); cdecl; external;
  397. function isc_print_status(_para1:PISC_STATUS):ISC_STATUS; cdecl; external;
  398. function isc_put_segment(_para1:PISC_STATUS; _para2:Pisc_blob_handle; _para3:word; _para4:Pchar):ISC_STATUS; cdecl; external;
  399. function isc_put_slice(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:PISC_QUAD; _para5:smallint;
  400. _para6:Pchar; _para7:smallint; _para8:PISC_LONG; _para9:ISC_LONG; _para10:pointer):ISC_STATUS; cdecl; external;
  401. function isc_que_events(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:PISC_LONG; _para4:smallint; _para5:Pchar;
  402. _para6:isc_callback; _para7:pointer):ISC_STATUS; cdecl; external;
  403. function isc_rollback_retaining(_para1:PISC_STATUS; _para2:Pisc_tr_handle):ISC_STATUS; cdecl; external;
  404. function isc_rollback_transaction(_para1:PISC_STATUS; _para2:Pisc_tr_handle):ISC_STATUS; cdecl; external;
  405. function isc_start_multiple(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:smallint; _para4:pointer):ISC_STATUS; cdecl; external;
  406. function isc_start_transaction(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:smallint; args:array of const):ISC_STATUS; cdecl; external;
  407. function isc_sqlcode(_para1:PISC_STATUS):ISC_LONG; cdecl; external;
  408. procedure isc_sql_interprete(_para1:smallint; _para2:Pchar; _para3:smallint); cdecl; external;
  409. function isc_transaction_info(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:smallint; _para4:Pchar; _para5:smallint;
  410. _para6:Pchar):ISC_STATUS; cdecl; external;
  411. function isc_transact_request(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:word; _para5:Pchar;
  412. _para6:word; _para7:Pchar; _para8:word; _para9:Pchar):ISC_STATUS; cdecl; external;
  413. function isc_vax_integer(_para1:Pchar; _para2:smallint):ISC_LONG; cdecl; external;
  414. function isc_portable_integer(_para1:Pbyte; _para2:smallint):ISC_INT64; cdecl; external;
  415. { }
  416. { Security Functions and structures }
  417. { }
  418. const
  419. sec_uid_spec = $01;
  420. sec_gid_spec = $02;
  421. sec_server_spec = $04;
  422. sec_password_spec = $08;
  423. sec_group_name_spec = $10;
  424. sec_first_name_spec = $20;
  425. sec_middle_name_spec = $40;
  426. sec_last_name_spec = $80;
  427. sec_dba_user_name_spec = $100;
  428. sec_dba_password_spec = $200;
  429. sec_protocol_tcpip = 1;
  430. sec_protocol_netbeui = 2;
  431. sec_protocol_spx = 3;
  432. sec_protocol_local = 4;
  433. { which fields are specified }
  434. { the user's id }
  435. { the user's group id }
  436. { protocol to use for connection }
  437. { server to administer }
  438. { the user's name }
  439. { the user's password }
  440. { the group name }
  441. { the user's first name }
  442. { the user's middle name }
  443. { the user's last name }
  444. { the dba user name }
  445. { the dba password }
  446. type
  447. USER_SEC_DATA = record
  448. sec_flags : smallint;
  449. uid : longint;
  450. gid : longint;
  451. protocol : longint;
  452. server : Pchar;
  453. user_name : Pchar;
  454. password : Pchar;
  455. group_name : Pchar;
  456. first_name : Pchar;
  457. middle_name : Pchar;
  458. last_name : Pchar;
  459. dba_user_name : Pchar;
  460. dba_password : Pchar;
  461. end;
  462. TUSER_SEC_DATA = USER_SEC_DATA;
  463. PUSER_SEC_DATA = ^USER_SEC_DATA;
  464. function isc_add_user(_para1:PISC_STATUS; _para2:PUSER_SEC_DATA):longint; cdecl; external;
  465. function isc_delete_user(_para1:PISC_STATUS; _para2:PUSER_SEC_DATA):longint; cdecl; external;
  466. function isc_modify_user(_para1:PISC_STATUS; _para2:PUSER_SEC_DATA):longint; cdecl; external;
  467. { }
  468. { Other OSRI functions }
  469. { }
  470. function isc_compile_request(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_req_handle; _para4:smallint; _para5:Pchar):ISC_STATUS; cdecl; external;
  471. function isc_compile_request2(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_req_handle; _para4:smallint; _para5:Pchar):ISC_STATUS; cdecl; external;
  472. function isc_ddl(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:smallint; _para5:Pchar):ISC_STATUS; cdecl; external;
  473. function isc_prepare_transaction(_para1:PISC_STATUS; _para2:Pisc_tr_handle):ISC_STATUS; cdecl; external;
  474. function isc_receive(_para1:PISC_STATUS; _para2:Pisc_req_handle; _para3:smallint; _para4:smallint; _para5:pointer;
  475. _para6:smallint):ISC_STATUS; cdecl; external;
  476. function isc_reconnect_transaction(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:smallint; _para5:Pchar):ISC_STATUS; cdecl; external;
  477. function isc_release_request(_para1:PISC_STATUS; _para2:Pisc_req_handle):ISC_STATUS; cdecl; external;
  478. function isc_request_info(_para1:PISC_STATUS; _para2:Pisc_req_handle; _para3:smallint; _para4:smallint; _para5:Pchar;
  479. _para6:smallint; _para7:Pchar):ISC_STATUS; cdecl; external;
  480. function isc_seek_blob(_para1:PISC_STATUS; _para2:Pisc_blob_handle; _para3:smallint; _para4:ISC_LONG; _para5:PISC_LONG):ISC_STATUS; cdecl; external;
  481. function isc_send(_para1:PISC_STATUS; _para2:Pisc_req_handle; _para3:smallint; _para4:smallint; _para5:pointer;
  482. _para6:smallint):ISC_STATUS; cdecl; external;
  483. function isc_start_and_send(_para1:PISC_STATUS; _para2:Pisc_req_handle; _para3:Pisc_tr_handle; _para4:smallint; _para5:smallint;
  484. _para6:pointer; _para7:smallint):ISC_STATUS; cdecl; external;
  485. function isc_start_request(_para1:PISC_STATUS; _para2:Pisc_req_handle; _para3:Pisc_tr_handle; _para4:smallint):ISC_STATUS; cdecl; external;
  486. function isc_unwind_request(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:smallint):ISC_STATUS; cdecl; external;
  487. function isc_wait_for_event(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:smallint; _para4:Pchar; _para5:Pchar):ISC_STATUS; cdecl; external;
  488. { }
  489. { Other Sql functions }
  490. { }
  491. function isc_close(_para1:PISC_STATUS; _para2:Pchar):ISC_STATUS; cdecl; external;
  492. function isc_declare(_para1:PISC_STATUS; _para2:Pchar; _para3:Pchar):ISC_STATUS; cdecl; external;
  493. function isc_describe(_para1:PISC_STATUS; _para2:Pchar; _para3:PXSQLDA):ISC_STATUS; cdecl; external;
  494. function isc_describe_bind(_para1:PISC_STATUS; _para2:Pchar; _para3:PXSQLDA):ISC_STATUS; cdecl; external;
  495. function isc_execute(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pchar; _para4:PXSQLDA):ISC_STATUS; cdecl; external;
  496. function isc_execute_immediate(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Psmallint; _para5:Pchar):ISC_STATUS; cdecl; external;
  497. function isc_fetch(_para1:PISC_STATUS; _para2:Pchar; _para3:PXSQLDA):ISC_STATUS; cdecl; external;
  498. function isc_open(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pchar; _para4:PXSQLDA):ISC_STATUS; cdecl; external;
  499. function isc_prepare(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pchar; _para5:Psmallint;
  500. _para6:Pchar; _para7:PXSQLDA):ISC_STATUS; cdecl; external;
  501. { }
  502. { Other Dynamic sql functions }
  503. { }
  504. function isc_dsql_execute_m(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pisc_stmt_handle; _para4:word; _para5:Pchar;
  505. _para6:word; _para7:word; _para8:Pchar):ISC_STATUS; cdecl; external;
  506. function isc_dsql_execute2_m(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pisc_stmt_handle; _para4:word; _para5:Pchar;
  507. _para6:word; _para7:word; _para8:Pchar; _para9:word; _para10:Pchar;
  508. _para11:word; _para12:word; _para13:Pchar):ISC_STATUS; cdecl; external;
  509. function isc_dsql_execute_immediate_m(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:word; _para5:Pchar;
  510. _para6:word; _para7:word; _para8:Pchar; _para9:word; _para10:word;
  511. _para11:Pchar):ISC_STATUS; cdecl; external;
  512. function isc_dsql_exec_immed3_m(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:word; _para5:Pchar;
  513. _para6:word; _para7:word; _para8:Pchar; _para9:word; _para10:word;
  514. _para11:Pchar; _para12:word; _para13:Pchar; _para14:word; _para15:word;
  515. _para16:Pchar):ISC_STATUS; cdecl; external;
  516. function isc_dsql_fetch_m(_para1:PISC_STATUS; _para2:Pisc_stmt_handle; _para3:word; _para4:Pchar; _para5:word;
  517. _para6:word; _para7:Pchar):ISC_STATUS; cdecl; external;
  518. function isc_dsql_insert_m(_para1:PISC_STATUS; _para2:Pisc_stmt_handle; _para3:word; _para4:Pchar; _para5:word;
  519. _para6:word; _para7:Pchar):ISC_STATUS; cdecl; external;
  520. function isc_dsql_prepare_m(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pisc_stmt_handle; _para4:word; _para5:Pchar;
  521. _para6:word; _para7:word; _para8:Pchar; _para9:word; _para10:Pchar):ISC_STATUS; cdecl; external;
  522. function isc_dsql_release(_para1:PISC_STATUS; _para2:Pchar):ISC_STATUS; cdecl; external;
  523. function isc_embed_dsql_close(_para1:PISC_STATUS; _para2:Pchar):ISC_STATUS; cdecl; external;
  524. function isc_embed_dsql_declare(_para1:PISC_STATUS; _para2:Pchar; _para3:Pchar):ISC_STATUS; cdecl; external;
  525. function isc_embed_dsql_describe(_para1:PISC_STATUS; _para2:Pchar; _para3:word; _para4:PXSQLDA):ISC_STATUS; cdecl; external;
  526. function isc_embed_dsql_describe_bind(_para1:PISC_STATUS; _para2:Pchar; _para3:word; _para4:PXSQLDA):ISC_STATUS; cdecl; external;
  527. function isc_embed_dsql_execute(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pchar; _para4:word; _para5:PXSQLDA):ISC_STATUS; cdecl; external;
  528. function isc_embed_dsql_execute2(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pchar; _para4:word; _para5:PXSQLDA;
  529. _para6:PXSQLDA):ISC_STATUS; cdecl; external;
  530. function isc_embed_dsql_execute_immed(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:word; _para5:Pchar;
  531. _para6:word; _para7:PXSQLDA):ISC_STATUS; cdecl; external;
  532. function isc_embed_dsql_fetch(_para1:PISC_STATUS; _para2:Pchar; _para3:word; _para4:PXSQLDA):ISC_STATUS; cdecl; external;
  533. function isc_embed_dsql_open(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pchar; _para4:word; _para5:PXSQLDA):ISC_STATUS; cdecl; external;
  534. function isc_embed_dsql_open2(_para1:PISC_STATUS; _para2:Pisc_tr_handle; _para3:Pchar; _para4:word; _para5:PXSQLDA;
  535. _para6:PXSQLDA):ISC_STATUS; cdecl; external;
  536. function isc_embed_dsql_insert(_para1:PISC_STATUS; _para2:Pchar; _para3:word; _para4:PXSQLDA):ISC_STATUS; cdecl; external;
  537. function isc_embed_dsql_prepare(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pchar; _para5:word;
  538. _para6:Pchar; _para7:word; _para8:PXSQLDA):ISC_STATUS; cdecl; external;
  539. function isc_embed_dsql_release(_para1:PISC_STATUS; _para2:Pchar):ISC_STATUS; cdecl; external;
  540. { }
  541. { Other Blob functions }
  542. { }
  543. function BLOB_open(_para1:isc_blob_handle; _para2:Pchar; _para3:longint):PBSTREAM; cdecl; external;
  544. function BLOB_put(_para1:char; _para2:PBSTREAM):longint; cdecl; external;
  545. function BLOB_close(_para1:PBSTREAM):longint; cdecl; external;
  546. function BLOB_get(_para1:PBSTREAM):longint; cdecl; external;
  547. function BLOB_display(_para1:PISC_QUAD; _para2:isc_db_handle; _para3:isc_tr_handle; _para4:Pchar):longint; cdecl; external;
  548. function BLOB_dump(_para1:PISC_QUAD; _para2:isc_db_handle; _para3:isc_tr_handle; _para4:Pchar):longint; cdecl; external;
  549. function BLOB_edit(_para1:PISC_QUAD; _para2:isc_db_handle; _para3:isc_tr_handle; _para4:Pchar):longint; cdecl; external;
  550. function BLOB_load(_para1:PISC_QUAD; _para2:isc_db_handle; _para3:isc_tr_handle; _para4:Pchar):longint; cdecl; external;
  551. function BLOB_text_dump(_para1:PISC_QUAD; _para2:isc_db_handle; _para3:isc_tr_handle; _para4:Pchar):longint; cdecl; external;
  552. function BLOB_text_load(_para1:PISC_QUAD; _para2:isc_db_handle; _para3:isc_tr_handle; _para4:Pchar):longint; cdecl; external;
  553. function Bopen(_para1:PISC_QUAD; _para2:isc_db_handle; _para3:isc_tr_handle; _para4:Pchar):PBSTREAM; cdecl; external;
  554. function Bopen2(_para1:PISC_QUAD; _para2:isc_db_handle; _para3:isc_tr_handle; _para4:Pchar; _para5:word):PBSTREAM; cdecl; external;
  555. { }
  556. { Other Misc functions }
  557. { }
  558. function isc_ftof(_para1:Pchar; _para2:word; _para3:Pchar; _para4:word):ISC_LONG; cdecl; external;
  559. function isc_print_blr(_para1:Pchar; _para2:isc_callback; _para3:pointer; _para4:smallint):ISC_STATUS; cdecl; external;
  560. procedure isc_set_debug(_para1:longint); cdecl; external;
  561. procedure isc_qtoq(_para1:PISC_QUAD; _para2:PISC_QUAD); cdecl; external;
  562. procedure isc_vtof(_para1:Pchar; _para2:Pchar; _para3:word); cdecl; external;
  563. procedure isc_vtov(_para1:Pchar; _para2:Pchar; _para3:smallint); cdecl; external;
  564. function isc_version(_para1:Pisc_db_handle; _para2:isc_callback; _para3:pointer):longint; cdecl; external;
  565. function isc_reset_fpe(_para1:word):ISC_LONG; cdecl; external;
  566. { }
  567. { Service manager functions }
  568. { }
  569. (*!!MVC
  570. #define ADD_SPB_LENGTH(p, length) { (p)++ = (length); \
  571. (p)++ = (length) >> 8;}
  572. #define ADD_SPB_NUMERIC(p, data) { (p)++ = (data); \
  573. (p)++ = (data) >> 8; \
  574. (p)++ = (data) >> 16; \
  575. (p)++ = (data) >> 24;}
  576. !!MVC *)
  577. function isc_service_attach(_para1:PISC_STATUS; _para2:word; _para3:Pchar; _para4:Pisc_svc_handle; _para5:word;
  578. _para6:Pchar):ISC_STATUS; cdecl; external;
  579. function isc_service_detach(_para1:PISC_STATUS; _para2:Pisc_svc_handle):ISC_STATUS; cdecl; external;
  580. function isc_service_query(_para1:PISC_STATUS; _para2:Pisc_svc_handle; _para3:Pisc_resv_handle; _para4:word; _para5:Pchar;
  581. _para6:word; _para7:Pchar; _para8:word; _para9:Pchar):ISC_STATUS; cdecl; external;
  582. function isc_service_start(_para1:PISC_STATUS; _para2:Pisc_svc_handle; _para3:Pisc_resv_handle; _para4:word; _para5:Pchar):ISC_STATUS; cdecl; external;
  583. { }
  584. { Forms functions }
  585. { }
  586. function isc_compile_map(_para1:PISC_STATUS; _para2:Pisc_form_handle; _para3:Pisc_req_handle; _para4:Psmallint; _para5:Pchar):ISC_STATUS; cdecl; external;
  587. function isc_compile_menu(_para1:PISC_STATUS; _para2:Pisc_form_handle; _para3:Pisc_req_handle; _para4:Psmallint; _para5:Pchar):ISC_STATUS; cdecl; external;
  588. function isc_compile_sub_map(_para1:PISC_STATUS; _para2:Pisc_win_handle; _para3:Pisc_req_handle; _para4:Psmallint; _para5:Pchar):ISC_STATUS; cdecl; external;
  589. function isc_create_window(_para1:PISC_STATUS; _para2:Pisc_win_handle; _para3:Psmallint; _para4:Pchar; _para5:Psmallint;
  590. _para6:Psmallint):ISC_STATUS; cdecl; external;
  591. function isc_delete_window(_para1:PISC_STATUS; _para2:Pisc_win_handle):ISC_STATUS; cdecl; external;
  592. function isc_drive_form(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pisc_win_handle; _para5:Pisc_req_handle;
  593. _para6:Pbyte; _para7:Pbyte):ISC_STATUS; cdecl; external;
  594. function isc_drive_menu(_para1:PISC_STATUS; _para2:Pisc_win_handle; _para3:Pisc_req_handle; _para4:Psmallint; _para5:Pchar;
  595. _para6:Psmallint; _para7:Pchar; _para8:Psmallint; _para9:Psmallint; _para10:Pchar;
  596. _para11:PISC_LONG):ISC_STATUS; cdecl; external;
  597. function isc_form_delete(_para1:PISC_STATUS; _para2:Pisc_form_handle):ISC_STATUS; cdecl; external;
  598. function isc_form_fetch(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pisc_req_handle; _para5:Pbyte):ISC_STATUS; cdecl; external;
  599. function isc_form_insert(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pisc_req_handle; _para5:Pbyte):ISC_STATUS; cdecl; external;
  600. function isc_get_entree(_para1:PISC_STATUS; _para2:Pisc_req_handle; _para3:Psmallint; _para4:Pchar; _para5:PISC_LONG;
  601. _para6:Psmallint):ISC_STATUS; cdecl; external;
  602. function isc_initialize_menu(_para1:PISC_STATUS; _para2:Pisc_req_handle):ISC_STATUS; cdecl; external;
  603. function isc_menu(_para1:PISC_STATUS; _para2:Pisc_win_handle; _para3:Pisc_req_handle; _para4:Psmallint; _para5:Pchar):ISC_STATUS; cdecl; external;
  604. function isc_load_form(_para1:PISC_STATUS; _para2:Pisc_db_handle; _para3:Pisc_tr_handle; _para4:Pisc_form_handle; _para5:Psmallint;
  605. _para6:Pchar):ISC_STATUS; cdecl; external;
  606. function isc_pop_window(_para1:PISC_STATUS; _para2:Pisc_win_handle):ISC_STATUS; cdecl; external;
  607. function isc_put_entree(_para1:PISC_STATUS; _para2:Pisc_req_handle; _para3:Psmallint; _para4:Pchar; _para5:PISC_LONG):ISC_STATUS; cdecl; external;
  608. function isc_reset_form(_para1:PISC_STATUS; _para2:Pisc_req_handle):ISC_STATUS; cdecl; external;
  609. function isc_suspend_window(_para1:PISC_STATUS; _para2:Pisc_win_handle):ISC_STATUS; cdecl; external;
  610. function isc_attach_database:ISC_STATUS; cdecl; external;
  611. function isc_array_gen_sdl:ISC_STATUS; cdecl; external;
  612. function isc_array_get_slice:ISC_STATUS; cdecl; external;
  613. function isc_array_lookup_bounds:ISC_STATUS; cdecl; external;
  614. function isc_array_lookup_desc:ISC_STATUS; cdecl; external;
  615. function isc_array_set_desc:ISC_STATUS; cdecl; external;
  616. function isc_array_put_slice:ISC_STATUS; cdecl; external;
  617. function isc_blob_gen_bpb:ISC_STATUS; cdecl; external;
  618. function isc_blob_info:ISC_STATUS; cdecl; external;
  619. function isc_blob_lookup_desc:ISC_STATUS; cdecl; external;
  620. function isc_blob_set_desc:ISC_STATUS; cdecl; external;
  621. function isc_cancel_blob:ISC_STATUS; cdecl; external;
  622. function isc_cancel_events:ISC_STATUS; cdecl; external;
  623. function isc_close_blob:ISC_STATUS; cdecl; external;
  624. function isc_commit_retaining:ISC_STATUS; cdecl; external;
  625. function isc_commit_transaction:ISC_STATUS; cdecl; external;
  626. function isc_compile_request:ISC_STATUS; cdecl; external;
  627. function isc_compile_request2:ISC_STATUS; cdecl; external;
  628. function isc_create_blob:ISC_STATUS; cdecl; external;
  629. function isc_create_blob2:ISC_STATUS; cdecl; external;
  630. function isc_create_database:ISC_STATUS; cdecl; external;
  631. function isc_database_info:ISC_STATUS; cdecl; external;
  632. function isc_ddl:ISC_STATUS; cdecl; external;
  633. procedure isc_decode_date; cdecl; external;
  634. procedure isc_decode_sql_date; cdecl; external;
  635. procedure isc_decode_sql_time; cdecl; external;
  636. procedure isc_decode_timestamp; cdecl; external;
  637. function isc_detach_database:ISC_STATUS; cdecl; external;
  638. function isc_drop_database:ISC_STATUS; cdecl; external;
  639. procedure isc_encode_date; cdecl; external;
  640. procedure isc_encode_sql_date; cdecl; external;
  641. procedure isc_encode_sql_time; cdecl; external;
  642. procedure isc_encode_timestamp; cdecl; external;
  643. function isc_event_block:ISC_LONG; cdecl; external;
  644. procedure isc_event_counts; cdecl; external;
  645. procedure isc_expand_dpb; cdecl; external;
  646. function isc_modify_dpb:longint; cdecl; external;
  647. function isc_free:ISC_LONG; cdecl; external;
  648. function isc_get_segment:ISC_STATUS; cdecl; external;
  649. function isc_get_slice:ISC_STATUS; cdecl; external;
  650. function isc_interprete:ISC_STATUS; cdecl; external;
  651. function isc_open_blob:ISC_STATUS; cdecl; external;
  652. function isc_open_blob2:ISC_STATUS; cdecl; external;
  653. function isc_prepare_transaction:ISC_STATUS; cdecl; external;
  654. function isc_prepare_transaction2:ISC_STATUS; cdecl; external;
  655. procedure isc_print_sqlerror; cdecl; external;
  656. function isc_print_status:ISC_STATUS; cdecl; external;
  657. function isc_put_segment:ISC_STATUS; cdecl; external;
  658. function isc_put_slice:ISC_STATUS; cdecl; external;
  659. function isc_que_events:ISC_STATUS; cdecl; external;
  660. function isc_receive:ISC_STATUS; cdecl; external;
  661. function isc_reconnect_transaction:ISC_STATUS; cdecl; external;
  662. function isc_release_request:ISC_STATUS; cdecl; external;
  663. function isc_request_info:ISC_STATUS; cdecl; external;
  664. function isc_reset_fpe:ISC_LONG; cdecl; external;
  665. function isc_rollback_transaction:ISC_STATUS; cdecl; external;
  666. function isc_rollback_retaining:ISC_STATUS; cdecl; external;
  667. function isc_seek_blob:ISC_STATUS; cdecl; external;
  668. function isc_send:ISC_STATUS; cdecl; external;
  669. function isc_service_attach:ISC_STATUS; cdecl; external;
  670. function isc_service_detach:ISC_STATUS; cdecl; external;
  671. function isc_service_query:ISC_STATUS; cdecl; external;
  672. function isc_service_start:ISC_STATUS; cdecl; external;
  673. function isc_start_and_send:ISC_STATUS; cdecl; external;
  674. function isc_start_multiple:ISC_STATUS; cdecl; external;
  675. function isc_start_request:ISC_STATUS; cdecl; external;
  676. function isc_start_transaction:ISC_STATUS; cdecl; external;
  677. function isc_sqlcode:ISC_LONG; cdecl; external;
  678. function isc_transaction_info:ISC_STATUS; cdecl; external;
  679. function isc_transact_request:ISC_STATUS; cdecl; external;
  680. function isc_unwind_request:ISC_STATUS; cdecl; external;
  681. function isc_wait_for_event:ISC_STATUS; cdecl; external;
  682. function isc_ftof:ISC_LONG; cdecl; external;
  683. function isc_print_blr:ISC_STATUS; cdecl; external;
  684. procedure isc_set_debug; cdecl; external;
  685. procedure isc_qtoq; cdecl; external;
  686. function isc_vax_integer:ISC_LONG; cdecl; external;
  687. procedure isc_vtof; cdecl; external;
  688. procedure isc_vtov; cdecl; external;
  689. function isc_version:longint; cdecl; external;
  690. { }
  691. { Blob functions }
  692. { }
  693. function Bopen:PBSTREAM; cdecl; external;
  694. function BLOB_open:PBSTREAM; cdecl; external;
  695. function Bopen2:PBSTREAM; cdecl; external;
  696. { __cplusplus || __STDC__ }
  697. { }
  698. { Actions to pass to the blob filter (ctl_source) }
  699. { }
  700. const
  701. isc_blob_filter_open = 0;
  702. isc_blob_filter_get_segment = 1;
  703. isc_blob_filter_close = 2;
  704. isc_blob_filter_create = 3;
  705. isc_blob_filter_put_segment = 4;
  706. isc_blob_filter_alloc = 5;
  707. isc_blob_filter_free = 6;
  708. isc_blob_filter_seek = 7;
  709. { }
  710. { Blr definitions }
  711. { }
  712. {$ifndef _JRD_BLR_H_}
  713. {!!MVC
  714. #define blr_word(n) ((n) % 256), ((n) / 256)
  715. !!MVC }
  716. const
  717. blr_text = 14;
  718. blr_text2 = 15;
  719. blr_short = 7;
  720. blr_long = 8;
  721. blr_quad = 9;
  722. blr_int64 = 16;
  723. blr_float = 10;
  724. blr_double = 27;
  725. blr_d_float = 11;
  726. blr_timestamp = 35;
  727. blr_varying = 37;
  728. blr_varying2 = 38;
  729. blr_blob = 261;
  730. blr_cstring = 40;
  731. blr_cstring2 = 41;
  732. blr_blob_id = 45;
  733. blr_sql_date = 12;
  734. blr_sql_time = 13;
  735. { Historical alias for pre V6 applications }
  736. blr_date = blr_timestamp;
  737. blr_inner = 0;
  738. blr_left = 1;
  739. blr_right = 2;
  740. blr_full = 3;
  741. blr_gds_code = 0;
  742. blr_sql_code = 1;
  743. blr_exception = 2;
  744. blr_trigger_code = 3;
  745. blr_default_code = 4;
  746. blr_version4 = 4;
  747. blr_version5 = 5;
  748. blr_eoc = 76;
  749. blr_end = 255;
  750. blr_assignment = 1;
  751. blr_begin = 2;
  752. blr_dcl_variable = 3;
  753. blr_message = 4;
  754. blr_erase = 5;
  755. blr_fetch = 6;
  756. blr_for = 7;
  757. blr_if = 8;
  758. blr_loop = 9;
  759. blr_modify = 10;
  760. blr_handler = 11;
  761. blr_receive = 12;
  762. blr_select = 13;
  763. blr_send = 14;
  764. blr_store = 15;
  765. blr_label = 17;
  766. blr_leave = 18;
  767. blr_store2 = 19;
  768. blr_post = 20;
  769. blr_literal = 21;
  770. blr_dbkey = 22;
  771. blr_field = 23;
  772. blr_fid = 24;
  773. blr_parameter = 25;
  774. blr_variable = 26;
  775. blr_average = 27;
  776. blr_count = 28;
  777. blr_maximum = 29;
  778. blr_minimum = 30;
  779. blr_total = 31;
  780. blr_add = 34;
  781. blr_subtract = 35;
  782. blr_multiply = 36;
  783. blr_divide = 37;
  784. blr_negate = 38;
  785. blr_concatenate = 39;
  786. blr_substring = 40;
  787. blr_parameter2 = 41;
  788. blr_from = 42;
  789. blr_via = 43;
  790. blr_user_name = 44;
  791. blr_null = 45;
  792. blr_eql = 47;
  793. blr_neq = 48;
  794. blr_gtr = 49;
  795. blr_geq = 50;
  796. blr_lss = 51;
  797. blr_leq = 52;
  798. blr_containing = 53;
  799. blr_matching = 54;
  800. blr_starting = 55;
  801. blr_between = 56;
  802. blr_or = 57;
  803. blr_and = 58;
  804. blr_not = 59;
  805. blr_any = 60;
  806. blr_missing = 61;
  807. blr_unique = 62;
  808. blr_like = 63;
  809. blr_stream = 65;
  810. blr_set_index = 66;
  811. blr_rse = 67;
  812. blr_first = 68;
  813. blr_project = 69;
  814. blr_sort = 70;
  815. blr_boolean = 71;
  816. blr_ascending = 72;
  817. blr_descending = 73;
  818. blr_relation = 74;
  819. blr_rid = 75;
  820. blr_union = 76;
  821. blr_map = 77;
  822. blr_group_by = 78;
  823. blr_aggregate = 79;
  824. blr_join_type = 80;
  825. blr_agg_count = 83;
  826. blr_agg_max = 84;
  827. blr_agg_min = 85;
  828. blr_agg_total = 86;
  829. blr_agg_average = 87;
  830. blr_parameter3 = 88;
  831. blr_run_count = 118;
  832. blr_run_max = 89;
  833. blr_run_min = 90;
  834. blr_run_total = 91;
  835. blr_run_average = 92;
  836. blr_agg_count2 = 93;
  837. blr_agg_count_distinct = 94;
  838. blr_agg_total_distinct = 95;
  839. blr_agg_average_distinct = 96;
  840. blr_function = 100;
  841. blr_gen_id = 101;
  842. blr_prot_mask = 102;
  843. blr_upcase = 103;
  844. blr_lock_state = 104;
  845. blr_value_if = 105;
  846. blr_matching2 = 106;
  847. blr_index = 107;
  848. blr_ansi_like = 108;
  849. blr_bookmark = 109;
  850. blr_crack = 110;
  851. blr_force_crack = 111;
  852. blr_seek = 112;
  853. blr_find = 113;
  854. blr_continue = 0;
  855. blr_forward = 1;
  856. blr_backward = 2;
  857. blr_bof_forward = 3;
  858. blr_eof_backward = 4;
  859. blr_lock_relation = 114;
  860. blr_lock_record = 115;
  861. blr_set_bookmark = 116;
  862. blr_get_bookmark = 117;
  863. blr_rs_stream = 119;
  864. blr_exec_proc = 120;
  865. blr_begin_range = 121;
  866. blr_end_range = 122;
  867. blr_delete_range = 123;
  868. blr_procedure = 124;
  869. blr_pid = 125;
  870. blr_exec_pid = 126;
  871. blr_singular = 127;
  872. blr_abort = 128;
  873. blr_block = 129;
  874. blr_error_handler = 130;
  875. blr_cast = 131;
  876. blr_release_lock = 132;
  877. blr_release_locks = 133;
  878. blr_start_savepoint = 134;
  879. blr_end_savepoint = 135;
  880. blr_find_dbkey = 136;
  881. blr_range_relation = 137;
  882. blr_delete_ranges = 138;
  883. blr_plan = 139;
  884. blr_merge = 140;
  885. blr_join = 141;
  886. blr_sequential = 142;
  887. blr_navigational = 143;
  888. blr_indices = 144;
  889. blr_retrieve = 145;
  890. blr_relation2 = 146;
  891. blr_rid2 = 147;
  892. blr_reset_stream = 148;
  893. blr_release_bookmark = 149;
  894. blr_set_generator = 150;
  895. blr_ansi_any = 151;
  896. blr_exists = 152;
  897. blr_cardinality = 153;
  898. { get tid of record }
  899. blr_record_version = 154;
  900. { fake server stall }
  901. blr_stall = 155;
  902. blr_seek_no_warn = 156;
  903. blr_find_dbkey_version = 157;
  904. blr_ansi_all = 158;
  905. blr_extract = 159;
  906. { sub parameters for blr_extract }
  907. blr_extract_year = 0;
  908. blr_extract_month = 1;
  909. blr_extract_day = 2;
  910. blr_extract_hour = 3;
  911. blr_extract_minute = 4;
  912. blr_extract_second = 5;
  913. blr_extract_weekday = 6;
  914. blr_extract_yearday = 7;
  915. blr_current_date = 160;
  916. blr_current_timestamp = 161;
  917. blr_current_time = 162;
  918. { These verbs were added in 6.0, primarily to support 64-bit integers }
  919. blr_add2 = 163;
  920. blr_subtract2 = 164;
  921. blr_multiply2 = 165;
  922. blr_divide2 = 166;
  923. blr_agg_total2 = 167;
  924. blr_agg_total_distinct2 = 168;
  925. blr_agg_average2 = 169;
  926. blr_agg_average_distinct2 = 170;
  927. blr_average2 = 171;
  928. blr_gen_id2 = 172;
  929. blr_set_generator2 = 173;
  930. {$endif}
  931. { _JRD_BLR_H_ }
  932. { }
  933. { Database parameter block stuff }
  934. { }
  935. const
  936. isc_dpb_version1 = 1;
  937. isc_dpb_cdd_pathname = 1;
  938. isc_dpb_allocation = 2;
  939. isc_dpb_journal = 3;
  940. isc_dpb_page_size = 4;
  941. isc_dpb_num_buffers = 5;
  942. isc_dpb_buffer_length = 6;
  943. isc_dpb_debug = 7;
  944. isc_dpb_garbage_collect = 8;
  945. isc_dpb_verify = 9;
  946. isc_dpb_sweep = 10;
  947. isc_dpb_enable_journal = 11;
  948. isc_dpb_disable_journal = 12;
  949. isc_dpb_dbkey_scope = 13;
  950. isc_dpb_number_of_users = 14;
  951. isc_dpb_trace = 15;
  952. isc_dpb_no_garbage_collect = 16;
  953. isc_dpb_damaged = 17;
  954. isc_dpb_license = 18;
  955. isc_dpb_sys_user_name = 19;
  956. isc_dpb_encrypt_key = 20;
  957. isc_dpb_activate_shadow = 21;
  958. isc_dpb_sweep_interval = 22;
  959. isc_dpb_delete_shadow = 23;
  960. isc_dpb_force_write = 24;
  961. isc_dpb_begin_log = 25;
  962. isc_dpb_quit_log = 26;
  963. isc_dpb_no_reserve = 27;
  964. isc_dpb_user_name = 28;
  965. isc_dpb_password = 29;
  966. isc_dpb_password_enc = 30;
  967. isc_dpb_sys_user_name_enc = 31;
  968. isc_dpb_interp = 32;
  969. isc_dpb_online_dump = 33;
  970. isc_dpb_old_file_size = 34;
  971. isc_dpb_old_num_files = 35;
  972. isc_dpb_old_file = 36;
  973. isc_dpb_old_start_page = 37;
  974. isc_dpb_old_start_seqno = 38;
  975. isc_dpb_old_start_file = 39;
  976. isc_dpb_drop_walfile = 40;
  977. isc_dpb_old_dump_id = 41;
  978. isc_dpb_wal_backup_dir = 42;
  979. isc_dpb_wal_chkptlen = 43;
  980. isc_dpb_wal_numbufs = 44;
  981. isc_dpb_wal_bufsize = 45;
  982. isc_dpb_wal_grp_cmt_wait = 46;
  983. isc_dpb_lc_messages = 47;
  984. isc_dpb_lc_ctype = 48;
  985. isc_dpb_cache_manager = 49;
  986. isc_dpb_shutdown = 50;
  987. isc_dpb_online = 51;
  988. isc_dpb_shutdown_delay = 52;
  989. isc_dpb_reserved = 53;
  990. isc_dpb_overwrite = 54;
  991. isc_dpb_sec_attach = 55;
  992. isc_dpb_disable_wal = 56;
  993. isc_dpb_connect_timeout = 57;
  994. isc_dpb_dummy_packet_interval = 58;
  995. isc_dpb_gbak_attach = 59;
  996. isc_dpb_sql_role_name = 60;
  997. isc_dpb_set_page_buffers = 61;
  998. isc_dpb_working_directory = 62;
  999. isc_dpb_SQL_dialect = 63;
  1000. isc_dpb_set_db_readonly = 64;
  1001. isc_dpb_set_db_SQL_dialect = 65;
  1002. isc_dpb_gfix_attach = 66;
  1003. isc_dpb_gstat_attach = 67;
  1004. { }
  1005. { isc_dpb_verify specific flags }
  1006. { }
  1007. isc_dpb_pages = 1;
  1008. isc_dpb_records = 2;
  1009. isc_dpb_indices = 4;
  1010. isc_dpb_transactions = 8;
  1011. isc_dpb_no_update = 16;
  1012. isc_dpb_repair = 32;
  1013. isc_dpb_ignore = 64;
  1014. { }
  1015. { isc_dpb_shutdown specific flags }
  1016. { }
  1017. isc_dpb_shut_cache = 1;
  1018. isc_dpb_shut_attachment = 2;
  1019. isc_dpb_shut_transaction = 4;
  1020. isc_dpb_shut_force = 8;
  1021. { }
  1022. { Bit assignments in RDB$SYSTEM_FLAG }
  1023. { }
  1024. RDB_system = 1;
  1025. RDB_id_assigned = 2;
  1026. { }
  1027. { Transaction parameter block stuff }
  1028. { }
  1029. isc_tpb_version1 = 1;
  1030. isc_tpb_version3 = 3;
  1031. isc_tpb_consistency = 1;
  1032. isc_tpb_concurrency = 2;
  1033. isc_tpb_shared = 3;
  1034. isc_tpb_protected = 4;
  1035. isc_tpb_exclusive = 5;
  1036. isc_tpb_wait = 6;
  1037. isc_tpb_nowait = 7;
  1038. isc_tpb_read = 8;
  1039. isc_tpb_write = 9;
  1040. isc_tpb_lock_read = 10;
  1041. isc_tpb_lock_write = 11;
  1042. isc_tpb_verb_time = 12;
  1043. isc_tpb_commit_time = 13;
  1044. isc_tpb_ignore_limbo = 14;
  1045. isc_tpb_read_committed = 15;
  1046. isc_tpb_autocommit = 16;
  1047. isc_tpb_rec_version = 17;
  1048. isc_tpb_no_rec_version = 18;
  1049. isc_tpb_restart_requests = 19;
  1050. isc_tpb_no_auto_undo = 20;
  1051. { }
  1052. { Blob Parameter Block }
  1053. { }
  1054. isc_bpb_version1 = 1;
  1055. isc_bpb_source_type = 1;
  1056. isc_bpb_target_type = 2;
  1057. isc_bpb_type = 3;
  1058. isc_bpb_source_interp = 4;
  1059. isc_bpb_target_interp = 5;
  1060. isc_bpb_filter_parameter = 6;
  1061. isc_bpb_type_segmented = 0;
  1062. isc_bpb_type_stream = 1;
  1063. { }
  1064. { Service parameter block stuff }
  1065. { }
  1066. isc_spb_version1 = 1;
  1067. isc_spb_current_version = 2;
  1068. isc_spb_version = isc_spb_current_version;
  1069. isc_spb_user_name = isc_dpb_user_name;
  1070. isc_spb_sys_user_name = isc_dpb_sys_user_name;
  1071. isc_spb_sys_user_name_enc = isc_dpb_sys_user_name_enc;
  1072. isc_spb_password = isc_dpb_password;
  1073. isc_spb_password_enc = isc_dpb_password_enc;
  1074. isc_spb_command_line = 105;
  1075. isc_spb_dbname = 106;
  1076. isc_spb_verbose = 107;
  1077. isc_spb_options = 108;
  1078. isc_spb_connect_timeout = isc_dpb_connect_timeout;
  1079. isc_spb_dummy_packet_interval = isc_dpb_dummy_packet_interval;
  1080. isc_spb_sql_role_name = isc_dpb_sql_role_name;
  1081. { }
  1082. { Information call declarations }
  1083. { }
  1084. { }
  1085. { Common, structural codes }
  1086. { }
  1087. isc_info_end = 1;
  1088. isc_info_truncated = 2;
  1089. isc_info_error = 3;
  1090. isc_info_data_not_ready = 4;
  1091. isc_info_flag_end = 127;
  1092. { }
  1093. { Database information items }
  1094. { }
  1095. isc_info_db_id = 4;
  1096. isc_info_reads = 5;
  1097. isc_info_writes = 6;
  1098. isc_info_fetches = 7;
  1099. isc_info_marks = 8;
  1100. isc_info_implementation = 11;
  1101. isc_info_version = 12;
  1102. isc_info_base_level = 13;
  1103. isc_info_page_size = 14;
  1104. isc_info_num_buffers = 15;
  1105. isc_info_limbo = 16;
  1106. isc_info_current_memory = 17;
  1107. isc_info_max_memory = 18;
  1108. isc_info_window_turns = 19;
  1109. isc_info_license = 20;
  1110. isc_info_allocation = 21;
  1111. isc_info_attachment_id = 22;
  1112. isc_info_read_seq_count = 23;
  1113. isc_info_read_idx_count = 24;
  1114. isc_info_insert_count = 25;
  1115. isc_info_update_count = 26;
  1116. isc_info_delete_count = 27;
  1117. isc_info_backout_count = 28;
  1118. isc_info_purge_count = 29;
  1119. isc_info_expunge_count = 30;
  1120. isc_info_sweep_interval = 31;
  1121. isc_info_ods_version = 32;
  1122. isc_info_ods_minor_version = 33;
  1123. isc_info_no_reserve = 34;
  1124. isc_info_logfile = 35;
  1125. isc_info_cur_logfile_name = 36;
  1126. isc_info_cur_log_part_offset = 37;
  1127. isc_info_num_wal_buffers = 38;
  1128. isc_info_wal_buffer_size = 39;
  1129. isc_info_wal_ckpt_length = 40;
  1130. isc_info_wal_cur_ckpt_interval = 41;
  1131. isc_info_wal_prv_ckpt_fname = 42;
  1132. isc_info_wal_prv_ckpt_poffset = 43;
  1133. isc_info_wal_recv_ckpt_fname = 44;
  1134. isc_info_wal_recv_ckpt_poffset = 45;
  1135. isc_info_wal_grpc_wait_usecs = 47;
  1136. isc_info_wal_num_io = 48;
  1137. isc_info_wal_avg_io_size = 49;
  1138. isc_info_wal_num_commits = 50;
  1139. isc_info_wal_avg_grpc_size = 51;
  1140. isc_info_forced_writes = 52;
  1141. isc_info_user_names = 53;
  1142. isc_info_page_errors = 54;
  1143. isc_info_record_errors = 55;
  1144. isc_info_bpage_errors = 56;
  1145. isc_info_dpage_errors = 57;
  1146. isc_info_ipage_errors = 58;
  1147. isc_info_ppage_errors = 59;
  1148. isc_info_tpage_errors = 60;
  1149. isc_info_set_page_buffers = 61;
  1150. isc_info_db_SQL_dialect = 62;
  1151. isc_info_db_read_only = 63;
  1152. isc_info_db_size_in_pages = 64;
  1153. { }
  1154. { Database information return values }
  1155. { }
  1156. isc_info_db_impl_rdb_vms = 1;
  1157. isc_info_db_impl_rdb_eln = 2;
  1158. isc_info_db_impl_rdb_eln_dev = 3;
  1159. isc_info_db_impl_rdb_vms_y = 4;
  1160. isc_info_db_impl_rdb_eln_y = 5;
  1161. isc_info_db_impl_jri = 6;
  1162. isc_info_db_impl_jsv = 7;
  1163. isc_info_db_impl_isc_a = 25;
  1164. isc_info_db_impl_isc_u = 26;
  1165. isc_info_db_impl_isc_v = 27;
  1166. isc_info_db_impl_isc_s = 28;
  1167. isc_info_db_impl_isc_apl_68K = 25;
  1168. isc_info_db_impl_isc_vax_ultr = 26;
  1169. isc_info_db_impl_isc_vms = 27;
  1170. isc_info_db_impl_isc_sun_68k = 28;
  1171. isc_info_db_impl_isc_os2 = 29;
  1172. isc_info_db_impl_isc_sun4 = 30;
  1173. isc_info_db_impl_isc_hp_ux = 31;
  1174. isc_info_db_impl_isc_sun_386i = 32;
  1175. isc_info_db_impl_isc_vms_orcl = 33;
  1176. isc_info_db_impl_isc_mac_aux = 34;
  1177. isc_info_db_impl_isc_rt_aix = 35;
  1178. isc_info_db_impl_isc_mips_ult = 36;
  1179. isc_info_db_impl_isc_xenix = 37;
  1180. isc_info_db_impl_isc_dg = 38;
  1181. isc_info_db_impl_isc_hp_mpexl = 39;
  1182. isc_info_db_impl_isc_hp_ux68K = 40;
  1183. isc_info_db_impl_isc_sgi = 41;
  1184. isc_info_db_impl_isc_sco_unix = 42;
  1185. isc_info_db_impl_isc_cray = 43;
  1186. isc_info_db_impl_isc_imp = 44;
  1187. isc_info_db_impl_isc_delta = 45;
  1188. isc_info_db_impl_isc_next = 46;
  1189. isc_info_db_impl_isc_dos = 47;
  1190. isc_info_db_impl_isc_winnt = 48;
  1191. isc_info_db_impl_isc_epson = 49;
  1192. isc_info_db_class_access = 1;
  1193. isc_info_db_class_y_valve = 2;
  1194. isc_info_db_class_rem_int = 3;
  1195. isc_info_db_class_rem_srvr = 4;
  1196. isc_info_db_class_pipe_int = 7;
  1197. isc_info_db_class_pipe_srvr = 8;
  1198. isc_info_db_class_sam_int = 9;
  1199. isc_info_db_class_sam_srvr = 10;
  1200. isc_info_db_class_gateway = 11;
  1201. isc_info_db_class_cache = 12;
  1202. { }
  1203. { Request information items }
  1204. { }
  1205. isc_info_number_messages = 4;
  1206. isc_info_max_message = 5;
  1207. isc_info_max_send = 6;
  1208. isc_info_max_receive = 7;
  1209. isc_info_state = 8;
  1210. isc_info_message_number = 9;
  1211. isc_info_message_size = 10;
  1212. isc_info_request_cost = 11;
  1213. isc_info_access_path = 12;
  1214. isc_info_req_select_count = 13;
  1215. isc_info_req_insert_count = 14;
  1216. isc_info_req_update_count = 15;
  1217. isc_info_req_delete_count = 16;
  1218. { }
  1219. { Access path items }
  1220. { }
  1221. isc_info_rsb_end = 0;
  1222. isc_info_rsb_begin = 1;
  1223. isc_info_rsb_type = 2;
  1224. isc_info_rsb_relation = 3;
  1225. isc_info_rsb_plan = 4;
  1226. { }
  1227. { Rsb types }
  1228. { }
  1229. isc_info_rsb_unknown = 1;
  1230. isc_info_rsb_indexed = 2;
  1231. isc_info_rsb_navigate = 3;
  1232. isc_info_rsb_sequential = 4;
  1233. isc_info_rsb_cross = 5;
  1234. isc_info_rsb_sort = 6;
  1235. isc_info_rsb_first = 7;
  1236. isc_info_rsb_boolean = 8;
  1237. isc_info_rsb_union = 9;
  1238. isc_info_rsb_aggregate = 10;
  1239. isc_info_rsb_merge = 11;
  1240. isc_info_rsb_ext_sequential = 12;
  1241. isc_info_rsb_ext_indexed = 13;
  1242. isc_info_rsb_ext_dbkey = 14;
  1243. isc_info_rsb_left_cross = 15;
  1244. isc_info_rsb_select = 16;
  1245. isc_info_rsb_sql_join = 17;
  1246. isc_info_rsb_simulate = 18;
  1247. isc_info_rsb_sim_cross = 19;
  1248. isc_info_rsb_once = 20;
  1249. isc_info_rsb_procedure = 21;
  1250. { }
  1251. { Bitmap expressions }
  1252. { }
  1253. isc_info_rsb_and = 1;
  1254. isc_info_rsb_or = 2;
  1255. isc_info_rsb_dbkey = 3;
  1256. isc_info_rsb_index = 4;
  1257. isc_info_req_active = 2;
  1258. isc_info_req_inactive = 3;
  1259. isc_info_req_send = 4;
  1260. isc_info_req_receive = 5;
  1261. isc_info_req_select = 6;
  1262. isc_info_req_sql_stall = 7;
  1263. { }
  1264. { Blob information items }
  1265. { }
  1266. isc_info_blob_num_segments = 4;
  1267. isc_info_blob_max_segment = 5;
  1268. isc_info_blob_total_length = 6;
  1269. isc_info_blob_type = 7;
  1270. { }
  1271. { Transaction information items }
  1272. { }
  1273. isc_info_tra_id = 4;
  1274. {
  1275. Service action items
  1276. }
  1277. { Starts database backup process on the server }
  1278. isc_action_svc_backup = 1;
  1279. { Starts database restore process on the server }
  1280. isc_action_svc_restore = 2;
  1281. { Starts database repair process on the server }
  1282. isc_action_svc_repair = 3;
  1283. { Adds a new user to the security database }
  1284. isc_action_svc_add_user = 4;
  1285. { Deletes a user record from the security database }
  1286. isc_action_svc_delete_user = 5;
  1287. { Modifies a user record in the security database }
  1288. isc_action_svc_modify_user = 6;
  1289. { Displays a user record from the security database }
  1290. isc_action_svc_display_user = 7;
  1291. { Sets database properties }
  1292. isc_action_svc_properties = 8;
  1293. { Adds a license to the license file }
  1294. isc_action_svc_add_license = 9;
  1295. { Removes a license from the license file }
  1296. isc_action_svc_remove_license = 10;
  1297. { Retrieves database statistics }
  1298. isc_action_svc_db_stats = 11;
  1299. { Retrieves the InterBase log file from the server }
  1300. isc_action_svc_get_ib_log = 12;
  1301. {
  1302. Service information items
  1303. }
  1304. { Retrieves the number of attachments and databases }
  1305. isc_info_svc_svr_db_info = 50;
  1306. { Retrieves all license keys and IDs from the license file }
  1307. isc_info_svc_get_license = 51;
  1308. { Retrieves a bitmask representing licensed options on the server }
  1309. isc_info_svc_get_license_mask = 52;
  1310. { Retrieves the parameters and values for IB_CONFIG }
  1311. isc_info_svc_get_config = 53;
  1312. { Retrieves the version of the services manager }
  1313. isc_info_svc_version = 54;
  1314. { Retrieves the version of the InterBase server }
  1315. isc_info_svc_server_version = 55;
  1316. { Retrieves the implementation of the InterBase server }
  1317. isc_info_svc_implementation = 56;
  1318. { Retrieves a bitmask representing the server's capabilities }
  1319. isc_info_svc_capabilities = 57;
  1320. { Retrieves the path to the security database in use by the server }
  1321. isc_info_svc_user_dbpath = 58;
  1322. { Retrieves the setting of $INTERBASE }
  1323. isc_info_svc_get_env = 59;
  1324. { Retrieves the setting of $INTERBASE_LCK }
  1325. isc_info_svc_get_env_lock = 60;
  1326. { Retrieves the setting of $INTERBASE_MSG }
  1327. isc_info_svc_get_env_msg = 61;
  1328. { Retrieves 1 line of service output per call }
  1329. isc_info_svc_line = 62;
  1330. { Retrieves as much of the server output as will fit in the supplied buffer }
  1331. isc_info_svc_to_eof = 63;
  1332. { Sets / signifies a timeout value for reading service information }
  1333. isc_info_svc_timeout = 64;
  1334. { Retrieves the number of users licensed for accessing the server }
  1335. isc_info_svc_get_licensed_users = 65;
  1336. { Retrieve the limbo transactions }
  1337. isc_info_svc_limbo_trans = 66;
  1338. { Checks to see if a service is running on an attachment }
  1339. isc_info_svc_running = 67;
  1340. { Returns the user information from isc_action_svc_display_users }
  1341. isc_info_svc_get_users = 68;
  1342. {
  1343. Parameters for isc_action_(add|delete|modify)_user
  1344. }
  1345. isc_spb_sec_userid = 5;
  1346. isc_spb_sec_groupid = 6;
  1347. isc_spb_sec_username = 7;
  1348. isc_spb_sec_password = 8;
  1349. isc_spb_sec_groupname = 9;
  1350. isc_spb_sec_firstname = 10;
  1351. isc_spb_sec_middlename = 11;
  1352. isc_spb_sec_lastname = 12;
  1353. {
  1354. Parameters for isc_action_svc_(add|remove)_license,
  1355. isc_info_svc_get_license
  1356. }
  1357. isc_spb_lic_key = 5;
  1358. isc_spb_lic_id = 6;
  1359. isc_spb_lic_desc = 7;
  1360. {
  1361. Parameters for isc_action_svc_backup
  1362. }
  1363. isc_spb_bkp_file = 5;
  1364. isc_spb_bkp_factor = 6;
  1365. isc_spb_bkp_length = 7;
  1366. isc_spb_bkp_ignore_checksums = $01;
  1367. isc_spb_bkp_ignore_limbo = $02;
  1368. isc_spb_bkp_metadata_only = $04;
  1369. isc_spb_bkp_no_garbage_collect = $08;
  1370. isc_spb_bkp_old_descriptions = $10;
  1371. isc_spb_bkp_non_transportable = $20;
  1372. isc_spb_bkp_convert = $40;
  1373. isc_spb_bkp_expand = $80;
  1374. {
  1375. Parameters for isc_action_svc_properties
  1376. }
  1377. isc_spb_prp_page_buffers = 5;
  1378. isc_spb_prp_sweep_interval = 6;
  1379. isc_spb_prp_shutdown_db = 7;
  1380. isc_spb_prp_deny_new_attachments = 9;
  1381. isc_spb_prp_deny_new_transactions = 10;
  1382. isc_spb_prp_reserve_space = 11;
  1383. isc_spb_prp_write_mode = 12;
  1384. isc_spb_prp_access_mode = 13;
  1385. isc_spb_prp_set_sql_dialect = 14;
  1386. isc_spb_prp_activate = $0100;
  1387. isc_spb_prp_db_online = $0200;
  1388. {
  1389. Parameters for isc_spb_prp_reserve_space
  1390. }
  1391. isc_spb_prp_res_use_full = 35;
  1392. isc_spb_prp_res = 36;
  1393. {
  1394. Parameters for isc_spb_prp_write_mode
  1395. }
  1396. isc_spb_prp_wm_async = 37;
  1397. isc_spb_prp_wm_sync = 38;
  1398. {
  1399. Parameters for isc_spb_prp_access_mode
  1400. }
  1401. isc_spb_prp_am_readonly = 39;
  1402. isc_spb_prp_am_readwrite = 40;
  1403. {
  1404. Parameters for isc_action_svc_repair
  1405. }
  1406. isc_spb_rpr_commit_trans = 15;
  1407. isc_spb_rpr_rollback_trans = 34;
  1408. isc_spb_rpr_recover_two_phase = 17;
  1409. isc_spb_tra_id = 18;
  1410. isc_spb_single_tra_id = 19;
  1411. isc_spb_multi_tra_id = 20;
  1412. isc_spb_tra_state = 21;
  1413. isc_spb_tra_state_limbo = 22;
  1414. isc_spb_tra_state_commit = 23;
  1415. isc_spb_tra_state_rollback = 24;
  1416. isc_spb_tra_state_unknown = 25;
  1417. isc_spb_tra_host_site = 26;
  1418. isc_spb_tra_remote_site = 27;
  1419. isc_spb_tra_db_path = 28;
  1420. isc_spb_tra_advise = 29;
  1421. isc_spb_tra_advise_commit = 30;
  1422. isc_spb_tra_advise_rollback = 31;
  1423. isc_spb_tra_advise_unknown = 33;
  1424. isc_spb_rpr_validate_db = $01;
  1425. isc_spb_rpr_sweep_db = $02;
  1426. isc_spb_rpr_mend_db = $04;
  1427. isc_spb_rpr_list_limbo_trans = $08;
  1428. isc_spb_rpr_check_db = $10;
  1429. isc_spb_rpr_ignore_checksum = $20;
  1430. isc_spb_rpr_kill_shadows = $40;
  1431. isc_spb_rpr_full = $80;
  1432. {
  1433. Parameters for isc_action_svc_restore
  1434. }
  1435. isc_spb_res_buffers = 9;
  1436. isc_spb_res_page_size = 10;
  1437. isc_spb_res_length = 11;
  1438. isc_spb_res_access_mode = 12;
  1439. isc_spb_res_deactivate_idx = $0100;
  1440. isc_spb_res_no_shadow = $0200;
  1441. isc_spb_res_no_validity = $0400;
  1442. isc_spb_res_one_at_a_time = $0800;
  1443. isc_spb_res_replace = $1000;
  1444. isc_spb_res_create = $2000;
  1445. isc_spb_res_use_all_space = $4000;
  1446. {
  1447. Parameters for isc_spb_res_access_mode
  1448. }
  1449. isc_spb_res_am_readonly = isc_spb_prp_am_readonly;
  1450. isc_spb_res_am_readwrite = isc_spb_prp_am_readwrite;
  1451. {
  1452. Parameters for isc_info_svc_svr_db_info
  1453. }
  1454. isc_spb_num_att = 5;
  1455. isc_spb_num_db = 6;
  1456. {
  1457. Parameters for isc_info_svc_db_stats
  1458. }
  1459. isc_spb_sts_data_pages = $01;
  1460. isc_spb_sts_db_log = $02;
  1461. isc_spb_sts_hdr_pages = $04;
  1462. isc_spb_sts_idx_pages = $08;
  1463. isc_spb_sts_sys_relations = $10;
  1464. { }
  1465. { SQL information items }
  1466. { }
  1467. isc_info_sql_select = 4;
  1468. isc_info_sql_bind = 5;
  1469. isc_info_sql_num_variables = 6;
  1470. isc_info_sql_describe_vars = 7;
  1471. isc_info_sql_describe_end = 8;
  1472. isc_info_sql_sqlda_seq = 9;
  1473. isc_info_sql_message_seq = 10;
  1474. isc_info_sql_type = 11;
  1475. isc_info_sql_sub_type = 12;
  1476. isc_info_sql_scale = 13;
  1477. isc_info_sql_length = 14;
  1478. isc_info_sql_null_ind = 15;
  1479. isc_info_sql_field = 16;
  1480. isc_info_sql_relation = 17;
  1481. isc_info_sql_owner = 18;
  1482. isc_info_sql_alias = 19;
  1483. isc_info_sql_sqlda_start = 20;
  1484. isc_info_sql_stmt_type = 21;
  1485. isc_info_sql_get_plan = 22;
  1486. isc_info_sql_records = 23;
  1487. isc_info_sql_batch_fetch = 24;
  1488. { }
  1489. { SQL information return values }
  1490. { }
  1491. isc_info_sql_stmt_select = 1;
  1492. isc_info_sql_stmt_insert = 2;
  1493. isc_info_sql_stmt_update = 3;
  1494. isc_info_sql_stmt_delete = 4;
  1495. isc_info_sql_stmt_ddl = 5;
  1496. isc_info_sql_stmt_get_segment = 6;
  1497. isc_info_sql_stmt_put_segment = 7;
  1498. isc_info_sql_stmt_exec_procedure = 8;
  1499. isc_info_sql_stmt_start_trans = 9;
  1500. isc_info_sql_stmt_commit = 10;
  1501. isc_info_sql_stmt_rollback = 11;
  1502. isc_info_sql_stmt_select_for_upd = 12;
  1503. isc_info_sql_stmt_set_generator = 13;
  1504. { }
  1505. { Server configuration key values }
  1506. { }
  1507. ISCCFG_LOCKMEM_KEY = 0;
  1508. ISCCFG_LOCKSEM_KEY = 1;
  1509. ISCCFG_LOCKSIG_KEY = 2;
  1510. ISCCFG_EVNTMEM_KEY = 3;
  1511. ISCCFG_DBCACHE_KEY = 4;
  1512. ISCCFG_PRIORITY_KEY = 5;
  1513. ISCCFG_IPCMAP_KEY = 6;
  1514. ISCCFG_MEMMIN_KEY = 7;
  1515. ISCCFG_MEMMAX_KEY = 8;
  1516. ISCCFG_LOCKORDER_KEY = 9;
  1517. ISCCFG_ANYLOCKMEM_KEY = 10;
  1518. ISCCFG_ANYLOCKSEM_KEY = 11;
  1519. ISCCFG_ANYLOCKSIG_KEY = 12;
  1520. ISCCFG_ANYEVNTMEM_KEY = 13;
  1521. ISCCFG_LOCKHASH_KEY = 14;
  1522. ISCCFG_DEADLOCK_KEY = 15;
  1523. ISCCFG_LOCKSPIN_KEY = 16;
  1524. ISCCFG_CONN_TIMEOUT_KEY = 17;
  1525. ISCCFG_DUMMY_INTRVL_KEY = 18;
  1526. { Internal Use only }
  1527. ISCCFG_TRACE_POOLS_KEY = 19;
  1528. ISCCFG_REMOTE_BUFFER_KEY = 20;
  1529. { }
  1530. { Error codes }
  1531. { }
  1532. isc_facility = 20;
  1533. isc_err_base = 335544320;
  1534. isc_err_factor = 1;
  1535. isc_arg_end = 0;
  1536. isc_arg_gds = 1;
  1537. isc_arg_string = 2;
  1538. isc_arg_cstring = 3;
  1539. isc_arg_number = 4;
  1540. isc_arg_interpreted = 5;
  1541. isc_arg_vms = 6;
  1542. isc_arg_unix = 7;
  1543. isc_arg_domain = 8;
  1544. isc_arg_dos = 9;
  1545. isc_arg_mpexl = 10;
  1546. isc_arg_mpexl_ipc = 11;
  1547. isc_arg_next_mach = 15;
  1548. isc_arg_netware = 16;
  1549. isc_arg_win32 = 17;
  1550. isc_arg_warning = 18;
  1551. { }
  1552. { Dynamic Data Definition Language operators }
  1553. { }
  1554. { }
  1555. { Version number }
  1556. { }
  1557. const
  1558. isc_dyn_version_1 = 1;
  1559. isc_dyn_eoc = 255;
  1560. { }
  1561. { Operations (may be nested) }
  1562. { }
  1563. isc_dyn_begin = 2;
  1564. isc_dyn_end = 3;
  1565. isc_dyn_if = 4;
  1566. isc_dyn_def_database = 5;
  1567. isc_dyn_def_global_fld = 6;
  1568. isc_dyn_def_local_fld = 7;
  1569. isc_dyn_def_idx = 8;
  1570. isc_dyn_def_rel = 9;
  1571. isc_dyn_def_sql_fld = 10;
  1572. isc_dyn_def_view = 12;
  1573. isc_dyn_def_trigger = 15;
  1574. isc_dyn_def_security_class = 120;
  1575. isc_dyn_def_dimension = 140;
  1576. isc_dyn_def_generator = 24;
  1577. isc_dyn_def_function = 25;
  1578. isc_dyn_def_filter = 26;
  1579. isc_dyn_def_function_arg = 27;
  1580. isc_dyn_def_shadow = 34;
  1581. isc_dyn_def_trigger_msg = 17;
  1582. isc_dyn_def_file = 36;
  1583. isc_dyn_mod_database = 39;
  1584. isc_dyn_mod_rel = 11;
  1585. isc_dyn_mod_global_fld = 13;
  1586. isc_dyn_mod_idx = 102;
  1587. isc_dyn_mod_local_fld = 14;
  1588. isc_dyn_mod_sql_fld = 216;
  1589. isc_dyn_mod_view = 16;
  1590. isc_dyn_mod_security_class = 122;
  1591. isc_dyn_mod_trigger = 113;
  1592. isc_dyn_mod_trigger_msg = 28;
  1593. isc_dyn_delete_database = 18;
  1594. isc_dyn_delete_rel = 19;
  1595. isc_dyn_delete_global_fld = 20;
  1596. isc_dyn_delete_local_fld = 21;
  1597. isc_dyn_delete_idx = 22;
  1598. isc_dyn_delete_security_class = 123;
  1599. isc_dyn_delete_dimensions = 143;
  1600. isc_dyn_delete_trigger = 23;
  1601. isc_dyn_delete_trigger_msg = 29;
  1602. isc_dyn_delete_filter = 32;
  1603. isc_dyn_delete_function = 33;
  1604. isc_dyn_delete_shadow = 35;
  1605. isc_dyn_grant = 30;
  1606. isc_dyn_revoke = 31;
  1607. isc_dyn_def_primary_key = 37;
  1608. isc_dyn_def_foreign_key = 38;
  1609. isc_dyn_def_unique = 40;
  1610. isc_dyn_def_procedure = 164;
  1611. isc_dyn_delete_procedure = 165;
  1612. isc_dyn_def_parameter = 135;
  1613. isc_dyn_delete_parameter = 136;
  1614. isc_dyn_mod_procedure = 175;
  1615. isc_dyn_def_log_file = 176;
  1616. isc_dyn_def_cache_file = 180;
  1617. isc_dyn_def_exception = 181;
  1618. isc_dyn_mod_exception = 182;
  1619. isc_dyn_del_exception = 183;
  1620. isc_dyn_drop_log = 194;
  1621. isc_dyn_drop_cache = 195;
  1622. isc_dyn_def_default_log = 202;
  1623. { }
  1624. { View specific stuff }
  1625. { }
  1626. isc_dyn_view_blr = 43;
  1627. isc_dyn_view_source = 44;
  1628. isc_dyn_view_relation = 45;
  1629. isc_dyn_view_context = 46;
  1630. isc_dyn_view_context_name = 47;
  1631. { }
  1632. { Generic attributes }
  1633. { }
  1634. isc_dyn_rel_name = 50;
  1635. isc_dyn_fld_name = 51;
  1636. isc_dyn_new_fld_name = 215;
  1637. isc_dyn_idx_name = 52;
  1638. isc_dyn_description = 53;
  1639. isc_dyn_security_class = 54;
  1640. isc_dyn_system_flag = 55;
  1641. isc_dyn_update_flag = 56;
  1642. isc_dyn_prc_name = 166;
  1643. isc_dyn_prm_name = 137;
  1644. isc_dyn_sql_object = 196;
  1645. isc_dyn_fld_character_set_name = 174;
  1646. { }
  1647. { Relation specific attributes }
  1648. { }
  1649. isc_dyn_rel_dbkey_length = 61;
  1650. isc_dyn_rel_store_trig = 62;
  1651. isc_dyn_rel_modify_trig = 63;
  1652. isc_dyn_rel_erase_trig = 64;
  1653. isc_dyn_rel_store_trig_source = 65;
  1654. isc_dyn_rel_modify_trig_source = 66;
  1655. isc_dyn_rel_erase_trig_source = 67;
  1656. isc_dyn_rel_ext_file = 68;
  1657. isc_dyn_rel_sql_protection = 69;
  1658. isc_dyn_rel_constraint = 162;
  1659. isc_dyn_delete_rel_constraint = 163;
  1660. { }
  1661. { Global field specific attributes }
  1662. { }
  1663. isc_dyn_fld_type = 70;
  1664. isc_dyn_fld_length = 71;
  1665. isc_dyn_fld_scale = 72;
  1666. isc_dyn_fld_sub_type = 73;
  1667. isc_dyn_fld_segment_length = 74;
  1668. isc_dyn_fld_query_header = 75;
  1669. isc_dyn_fld_edit_string = 76;
  1670. isc_dyn_fld_validation_blr = 77;
  1671. isc_dyn_fld_validation_source = 78;
  1672. isc_dyn_fld_computed_blr = 79;
  1673. isc_dyn_fld_computed_source = 80;
  1674. isc_dyn_fld_missing_value = 81;
  1675. isc_dyn_fld_default_value = 82;
  1676. isc_dyn_fld_query_name = 83;
  1677. isc_dyn_fld_dimensions = 84;
  1678. isc_dyn_fld_not_null = 85;
  1679. isc_dyn_fld_precision = 86;
  1680. isc_dyn_fld_char_length = 172;
  1681. isc_dyn_fld_collation = 173;
  1682. isc_dyn_fld_default_source = 193;
  1683. isc_dyn_del_default = 197;
  1684. isc_dyn_del_validation = 198;
  1685. isc_dyn_single_validation = 199;
  1686. isc_dyn_fld_character_set = 203;
  1687. { }
  1688. { Local field specific attributes }
  1689. { }
  1690. isc_dyn_fld_source = 90;
  1691. isc_dyn_fld_base_fld = 91;
  1692. isc_dyn_fld_position = 92;
  1693. isc_dyn_fld_update_flag = 93;
  1694. { }
  1695. { Index specific attributes }
  1696. { }
  1697. isc_dyn_idx_unique = 100;
  1698. isc_dyn_idx_inactive = 101;
  1699. isc_dyn_idx_type = 103;
  1700. isc_dyn_idx_foreign_key = 104;
  1701. isc_dyn_idx_ref_column = 105;
  1702. isc_dyn_idx_statistic = 204;
  1703. { }
  1704. { Trigger specific attributes }
  1705. { }
  1706. isc_dyn_trg_type = 110;
  1707. isc_dyn_trg_blr = 111;
  1708. isc_dyn_trg_source = 112;
  1709. isc_dyn_trg_name = 114;
  1710. isc_dyn_trg_sequence = 115;
  1711. isc_dyn_trg_inactive = 116;
  1712. isc_dyn_trg_msg_number = 117;
  1713. isc_dyn_trg_msg = 118;
  1714. { }
  1715. { Security Class specific attributes }
  1716. { }
  1717. isc_dyn_scl_acl = 121;
  1718. isc_dyn_grant_user = 130;
  1719. isc_dyn_grant_proc = 186;
  1720. isc_dyn_grant_trig = 187;
  1721. isc_dyn_grant_view = 188;
  1722. isc_dyn_grant_options = 132;
  1723. isc_dyn_grant_user_group = 205;
  1724. { }
  1725. { Dimension specific information }
  1726. { }
  1727. isc_dyn_dim_lower = 141;
  1728. isc_dyn_dim_upper = 142;
  1729. { }
  1730. { File specific attributes }
  1731. { }
  1732. isc_dyn_file_name = 125;
  1733. isc_dyn_file_start = 126;
  1734. isc_dyn_file_length = 127;
  1735. isc_dyn_shadow_number = 128;
  1736. isc_dyn_shadow_man_auto = 129;
  1737. isc_dyn_shadow_conditional = 130;
  1738. { }
  1739. { Log file specific attributes }
  1740. { }
  1741. isc_dyn_log_file_sequence = 177;
  1742. isc_dyn_log_file_partitions = 178;
  1743. isc_dyn_log_file_serial = 179;
  1744. isc_dyn_log_file_overflow = 200;
  1745. isc_dyn_log_file_raw = 201;
  1746. { }
  1747. { Log specific attributes }
  1748. { }
  1749. isc_dyn_log_group_commit_wait = 189;
  1750. isc_dyn_log_buffer_size = 190;
  1751. isc_dyn_log_check_point_length = 191;
  1752. isc_dyn_log_num_of_buffers = 192;
  1753. { }
  1754. { Function specific attributes }
  1755. { }
  1756. isc_dyn_function_name = 145;
  1757. isc_dyn_function_type = 146;
  1758. isc_dyn_func_module_name = 147;
  1759. isc_dyn_func_entry_point = 148;
  1760. isc_dyn_func_return_argument = 149;
  1761. isc_dyn_func_arg_position = 150;
  1762. isc_dyn_func_mechanism = 151;
  1763. isc_dyn_filter_in_subtype = 152;
  1764. isc_dyn_filter_out_subtype = 153;
  1765. isc_dyn_description2 = 154;
  1766. isc_dyn_fld_computed_source2 = 155;
  1767. isc_dyn_fld_edit_string2 = 156;
  1768. isc_dyn_fld_query_header2 = 157;
  1769. isc_dyn_fld_validation_source2 = 158;
  1770. isc_dyn_trg_msg2 = 159;
  1771. isc_dyn_trg_source2 = 160;
  1772. isc_dyn_view_source2 = 161;
  1773. isc_dyn_xcp_msg2 = 184;
  1774. { }
  1775. { Generator specific attributes }
  1776. { }
  1777. isc_dyn_generator_name = 95;
  1778. isc_dyn_generator_id = 96;
  1779. { }
  1780. { Procedure specific attributes }
  1781. { }
  1782. isc_dyn_prc_inputs = 167;
  1783. isc_dyn_prc_outputs = 168;
  1784. isc_dyn_prc_source = 169;
  1785. isc_dyn_prc_blr = 170;
  1786. isc_dyn_prc_source2 = 171;
  1787. { }
  1788. { Parameter specific attributes }
  1789. { }
  1790. isc_dyn_prm_number = 138;
  1791. isc_dyn_prm_type = 139;
  1792. { }
  1793. { Relation specific attributes }
  1794. { }
  1795. isc_dyn_xcp_msg = 185;
  1796. { }
  1797. { Cascading referential integrity values }
  1798. { }
  1799. isc_dyn_foreign_key_update = 205;
  1800. isc_dyn_foreign_key_delete = 206;
  1801. isc_dyn_foreign_key_cascade = 207;
  1802. isc_dyn_foreign_key_default = 208;
  1803. isc_dyn_foreign_key_null = 209;
  1804. isc_dyn_foreign_key_none = 210;
  1805. { }
  1806. { SQL role values }
  1807. { }
  1808. isc_dyn_def_sql_role = 211;
  1809. isc_dyn_sql_role_name = 212;
  1810. isc_dyn_grant_admin_options = 213;
  1811. isc_dyn_del_sql_role = 214;
  1812. { }
  1813. { Last $dyn value assigned }
  1814. { }
  1815. isc_dyn_last_dyn_value = 216;
  1816. { }
  1817. { Array slice description language (SDL) }
  1818. { }
  1819. isc_sdl_version1 = 1;
  1820. isc_sdl_eoc = 255;
  1821. isc_sdl_relation = 2;
  1822. isc_sdl_rid = 3;
  1823. isc_sdl_field = 4;
  1824. isc_sdl_fid = 5;
  1825. isc_sdl_struct = 6;
  1826. isc_sdl_variable = 7;
  1827. isc_sdl_scalar = 8;
  1828. isc_sdl_tiny_integer = 9;
  1829. isc_sdl_short_integer = 10;
  1830. isc_sdl_long_integer = 11;
  1831. isc_sdl_literal = 12;
  1832. isc_sdl_add = 13;
  1833. isc_sdl_subtract = 14;
  1834. isc_sdl_multiply = 15;
  1835. isc_sdl_divide = 16;
  1836. isc_sdl_negate = 17;
  1837. isc_sdl_eql = 18;
  1838. isc_sdl_neq = 19;
  1839. isc_sdl_gtr = 20;
  1840. isc_sdl_geq = 21;
  1841. isc_sdl_lss = 22;
  1842. isc_sdl_leq = 23;
  1843. isc_sdl_and = 24;
  1844. isc_sdl_or = 25;
  1845. isc_sdl_not = 26;
  1846. isc_sdl_while = 27;
  1847. isc_sdl_assignment = 28;
  1848. isc_sdl_label = 29;
  1849. isc_sdl_leave = 30;
  1850. isc_sdl_begin = 31;
  1851. isc_sdl_end = 32;
  1852. isc_sdl_do3 = 33;
  1853. isc_sdl_do2 = 34;
  1854. isc_sdl_do1 = 35;
  1855. isc_sdl_element = 36;
  1856. { }
  1857. { International text interpretation values }
  1858. { }
  1859. isc_interp_eng_ascii = 0;
  1860. isc_interp_jpn_sjis = 5;
  1861. isc_interp_jpn_euc = 6;
  1862. { }
  1863. { SQL definitions }
  1864. { }
  1865. SQL_TEXT = 452;
  1866. SQL_VARYING = 448;
  1867. SQL_SHORT = 500;
  1868. SQL_LONG = 496;
  1869. SQL_FLOAT = 482;
  1870. SQL_DOUBLE = 480;
  1871. SQL_D_FLOAT = 530;
  1872. SQL_TIMESTAMP = 510;
  1873. SQL_BLOB = 520;
  1874. SQL_ARRAY = 540;
  1875. SQL_QUAD = 550;
  1876. SQL_TYPE_TIME = 560;
  1877. SQL_TYPE_DATE = 570;
  1878. SQL_INT64 = 580;
  1879. { Historical alias for pre V6 applications }
  1880. SQL_DATE = SQL_TIMESTAMP;
  1881. { }
  1882. { Blob Subtypes }
  1883. { }
  1884. { types less than zero are reserved for customer use }
  1885. isc_blob_untyped = 0;
  1886. { internal subtypes }
  1887. isc_blob_text = 1;
  1888. isc_blob_blr = 2;
  1889. isc_blob_acl = 3;
  1890. isc_blob_ranges = 4;
  1891. isc_blob_summary = 5;
  1892. isc_blob_format = 6;
  1893. isc_blob_tra = 7;
  1894. isc_blob_extfile = 8;
  1895. { the range 20-30 is reserved for dBASE and Paradox types }
  1896. isc_blob_formatted_memo = 20;
  1897. isc_blob_paradox_ole = 21;
  1898. isc_blob_graphic = 22;
  1899. isc_blob_dbase_ole = 23;
  1900. isc_blob_typed_binary = 24;
  1901. implementation
  1902. end.
  1903. $Log$
  1904. Revision 1.2 2000-07-13 11:33:25 michael
  1905. + removed logs
  1906. }