ibase60.inc 113 KB

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