ibase40.pp 71 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859
  1. {
  2. $Id$
  3. }
  4. unit ibase40;
  5. interface
  6. const
  7. {$ifdef Unix}
  8. LibName = 'gds';
  9. {$linklib c}
  10. {$else}
  11. LibName = 'gds32.dll';
  12. {$endif}
  13. { C Compatibility types }
  14. type
  15. { Unsigned types }
  16. UChar = Byte;
  17. UShort = Word;
  18. UInt = DWord;
  19. ULong = DWord;
  20. { Signed types }
  21. Int = LongInt;
  22. Long = LongInt;
  23. Short = Integer;
  24. Float = Single;
  25. { Pointers to basic types }
  26. PInt = ^Int;
  27. PShort = ^Short;
  28. PUShort = ^UShort;
  29. PLong = ^Long;
  30. PULong = ^ULong;
  31. PFloat = ^Float;
  32. PUChar = ^UChar;
  33. PVoid = ^Pointer;
  34. { Interbase redefinitions }
  35. ISC_LONG = Long;
  36. UISC_LONG = ULong;
  37. ISC_STATUS = Long;
  38. UISC_STATUS = ULong;
  39. Void = Pointer;
  40. PISC_LONG = ^ISC_LONG;
  41. PUISC_LONG = ^UISC_LONG;
  42. PISC_STATUS = ^ISC_STATUS;
  43. PPISC_STATUS = ^PISC_STATUS;
  44. PUISC_STATUS = ^UISC_STATUS;
  45. { C Date/Time Structure }
  46. TCTimeStructure = record
  47. tm_sec,
  48. tm_min,
  49. tm_hour,
  50. tm_mday,
  51. tm_mon,
  52. tm_year,
  53. tm_wday,
  54. tm_yday,
  55. tm_isdst : Longint;
  56. end;
  57. PCTimeStructure = ^TCTimeStructure;
  58. TM = TCTimeStructure;
  59. PTM = ^TM;
  60. TISC_VARYING = record
  61. strlen: Short;
  62. str: array[0..0] of Char;
  63. end;
  64. TISC_BlobGetSegment = function(BlobHandle: PInt; Buffer: PChar; BufferSize: Long; var ResultLength: Long): Short; cdecl;
  65. TISC_BlobPutSegment = procedure(BlobHandle: PInt; Buffer: PChar; BufferLength: Short); cdecl;
  66. TBlob = record
  67. GetSegment : TISC_BlobGetSegment;
  68. BlobHandle : PInt;
  69. SegmentCount : Long;
  70. MaxSegmentLength : Long;
  71. TotalSize : Long;
  72. PutSegment : TISC_BlobPutSegment;
  73. end;
  74. PBlob = ^TBlob;
  75. Const
  76. {
  77. Huge amount of constants.
  78. Look for TYPESTART to get to types,
  79. Look For FUNCSTART to get to functions and procedures
  80. }
  81. ISC_TRUE = 1;
  82. ISC_FALSE = 0;
  83. DSQL_close = 1;
  84. DSQL_drop = 2;
  85. sec_uid_spec = $01;
  86. sec_gid_spec = $02;
  87. sec_server_spec = $04;
  88. sec_password_spec = $08;
  89. sec_group_name_spec = $10;
  90. sec_first_name_spec = $20;
  91. sec_middle_name_spec = $40;
  92. sec_last_name_spec = $80;
  93. sec_dba_user_name_spec = $100;
  94. sec_dba_password_spec = $200;
  95. sec_protocol_tcpip = 1;
  96. sec_protocol_netbeui = 2;
  97. sec_protocol_spx = 3;
  98. sec_protocol_local = 4;
  99. isc_blob_filter_open = 0;
  100. isc_blob_filter_get_segment = 1;
  101. isc_blob_filter_close = 2;
  102. isc_blob_filter_create = 3;
  103. isc_blob_filter_put_segment = 4;
  104. isc_blob_filter_alloc = 5;
  105. isc_blob_filter_free = 6;
  106. isc_blob_filter_seek = 7;
  107. blr_text = 14;
  108. blr_text2 = 15;
  109. blr_short = 7;
  110. blr_long = 8;
  111. blr_quad = 9;
  112. blr_float = 10;
  113. blr_double = 27;
  114. blr_d_float = 11;
  115. blr_date = 35;
  116. blr_varying = 37;
  117. blr_varying2 = 38;
  118. blr_blob = 261;
  119. blr_cstring = 40;
  120. blr_cstring2 = 41;
  121. blr_blob_id = 45;
  122. blr_inner = 0;
  123. blr_left = 1;
  124. blr_right = 2;
  125. blr_full = 3;
  126. blr_gds_code = 0;
  127. blr_sql_code = 1;
  128. blr_exception = 2;
  129. blr_trigger_code = 3;
  130. blr_default_code = 4;
  131. blr_version4 = 4;
  132. blr_eoc = 76;
  133. blr_end = -1;
  134. blr_assignment = 1;
  135. blr_begin = 2;
  136. blr_dcl_variable = 3;
  137. blr_message = 4;
  138. blr_erase = 5;
  139. blr_fetch = 6;
  140. blr_for = 7;
  141. blr_if = 8;
  142. blr_loop = 9;
  143. blr_modify = 10;
  144. blr_handler = 11;
  145. blr_receive = 12;
  146. blr_select = 13;
  147. blr_send = 14;
  148. blr_store = 15;
  149. blr_label = 17;
  150. blr_leave = 18;
  151. blr_store2 = 19;
  152. blr_post = 20;
  153. blr_literal = 21;
  154. blr_dbkey = 22;
  155. blr_field = 23;
  156. blr_fid = 24;
  157. blr_parameter = 25;
  158. blr_variable = 26;
  159. blr_average = 27;
  160. blr_count = 28;
  161. blr_maximum = 29;
  162. blr_minimum = 30;
  163. blr_total = 31;
  164. blr_add = 34;
  165. blr_subtract = 35;
  166. blr_multiply = 36;
  167. blr_divide = 37;
  168. blr_negate = 38;
  169. blr_concatenate = 39;
  170. blr_substring = 40;
  171. blr_parameter2 = 41;
  172. blr_from = 42;
  173. blr_via = 43;
  174. blr_user_name = 44;
  175. blr_null = 45;
  176. blr_eql = 47;
  177. blr_neq = 48;
  178. blr_gtr = 49;
  179. blr_geq = 50;
  180. blr_lss = 51;
  181. blr_leq = 52;
  182. blr_containing = 53;
  183. blr_matching = 54;
  184. blr_starting = 55;
  185. blr_between = 56;
  186. blr_or = 57;
  187. blr_and = 58;
  188. blr_not = 59;
  189. blr_any = 60;
  190. blr_missing = 61;
  191. blr_unique = 62;
  192. blr_like = 63;
  193. blr_stream = 65;
  194. blr_set_index = 66;
  195. blr_rse = 67;
  196. blr_first = 68;
  197. blr_project = 69;
  198. blr_sort = 70;
  199. blr_boolean = 71;
  200. blr_ascending = 72;
  201. blr_descending = 73;
  202. blr_relation = 74;
  203. blr_rid = 75;
  204. blr_union = 76;
  205. blr_map = 77;
  206. blr_group_by = 78;
  207. blr_aggregate = 79;
  208. blr_join_type = 80;
  209. blr_agg_count = 83;
  210. blr_agg_max = 84;
  211. blr_agg_min = 85;
  212. blr_agg_total = 86;
  213. blr_agg_average = 87;
  214. blr_parameter3 = 88;
  215. blr_run_count = 118;
  216. blr_run_max = 89;
  217. blr_run_min = 90;
  218. blr_run_total = 91;
  219. blr_run_average = 92;
  220. blr_agg_count2 = 93;
  221. blr_agg_count_distinct = 94;
  222. blr_agg_total_distinct = 95;
  223. blr_agg_average_distinct = 96;
  224. blr_function = 100;
  225. blr_gen_id = 101;
  226. blr_prot_mask = 102;
  227. blr_upcase = 103;
  228. blr_lock_state = 104;
  229. blr_value_if = 105;
  230. blr_matching2 = 106;
  231. blr_index = 107;
  232. blr_ansi_like = 108;
  233. blr_bookmark = 109;
  234. blr_crack = 110;
  235. blr_force_crack = 111;
  236. blr_seek = 112;
  237. blr_find = 113;
  238. blr_continue = 0;
  239. blr_forward = 1;
  240. blr_backward = 2;
  241. blr_bof_forward = 3;
  242. blr_eof_backward = 4;
  243. blr_lock_relation = 114;
  244. blr_lock_record = 115;
  245. blr_set_bookmark = 116;
  246. blr_get_bookmark = 117;
  247. blr_rs_stream = 119;
  248. blr_exec_proc = 120;
  249. blr_begin_range = 121;
  250. blr_end_range = 122;
  251. blr_delete_range = 123;
  252. blr_procedure = 124;
  253. blr_pid = 125;
  254. blr_exec_pid = 126;
  255. blr_singular = 127;
  256. blr_abort = 128;
  257. blr_block = 129;
  258. blr_error_handler = 130;
  259. blr_cast = 131;
  260. blr_release_lock = 132;
  261. blr_release_locks = 133;
  262. blr_start_savepoint = 134;
  263. blr_end_savepoint = 135;
  264. blr_find_dbkey = 136;
  265. blr_range_relation = 137;
  266. blr_delete_ranges = 138;
  267. blr_plan = 139;
  268. blr_merge = 140;
  269. blr_join = 141;
  270. blr_sequential = 142;
  271. blr_navigational = 143;
  272. blr_indices = 144;
  273. blr_retrieve = 145;
  274. blr_relation2 = 146;
  275. blr_rid2 = 147;
  276. blr_reset_stream = 148;
  277. blr_release_bookmark = 149;
  278. blr_set_generator = 150;
  279. blr_ansi_any = 151;
  280. blr_exists = 152;
  281. blr_cardinality = 153;
  282. blr_record_version = 154;
  283. blr_stall = 155;
  284. blr_seek_no_warn = 156;
  285. blr_find_dbkey_version = 157;
  286. blr_ansi_all = 158;
  287. isc_dpb_version1 = 1;
  288. isc_dpb_cdd_pathname = 1;
  289. isc_dpb_allocation = 2;
  290. isc_dpb_journal = 3;
  291. isc_dpb_page_size = 4;
  292. isc_dpb_num_buffers = 5;
  293. isc_dpb_buffer_length = 6;
  294. isc_dpb_debug = 7;
  295. isc_dpb_garbage_collect = 8;
  296. isc_dpb_verify = 9;
  297. isc_dpb_sweep = 10;
  298. isc_dpb_enable_journal = 11;
  299. isc_dpb_disable_journal = 12;
  300. isc_dpb_dbkey_scope = 13;
  301. isc_dpb_number_of_users = 14;
  302. isc_dpb_trace = 15;
  303. isc_dpb_no_garbage_collect = 16;
  304. isc_dpb_damaged = 17;
  305. isc_dpb_license = 18;
  306. isc_dpb_sys_user_name = 19;
  307. isc_dpb_encrypt_key = 20;
  308. isc_dpb_activate_shadow = 21;
  309. isc_dpb_sweep_interval = 22;
  310. isc_dpb_delete_shadow = 23;
  311. isc_dpb_force_write = 24;
  312. isc_dpb_begin_log = 25;
  313. isc_dpb_quit_log = 26;
  314. isc_dpb_no_reserve = 27;
  315. isc_dpb_user_name = 28;
  316. isc_dpb_password = 29;
  317. isc_dpb_password_enc = 30;
  318. isc_dpb_sys_user_name_enc = 31;
  319. isc_dpb_interp = 32;
  320. isc_dpb_online_dump = 33;
  321. isc_dpb_old_file_size = 34;
  322. isc_dpb_old_num_files = 35;
  323. isc_dpb_old_file = 36;
  324. isc_dpb_old_start_page = 37;
  325. isc_dpb_old_start_seqno = 38;
  326. isc_dpb_old_start_file = 39;
  327. isc_dpb_drop_walfile = 40;
  328. isc_dpb_old_dump_id = 41;
  329. isc_dpb_wal_backup_dir = 42;
  330. isc_dpb_wal_chkptlen = 43;
  331. isc_dpb_wal_numbufs = 44;
  332. isc_dpb_wal_bufsize = 45;
  333. isc_dpb_wal_grp_cmt_wait = 46;
  334. isc_dpb_lc_messages = 47;
  335. isc_dpb_lc_ctype = 48;
  336. isc_dpb_cache_manager = 49;
  337. isc_dpb_shutdown = 50;
  338. isc_dpb_online = 51;
  339. isc_dpb_shutdown_delay = 52;
  340. isc_dpb_reserved = 53;
  341. isc_dpb_overwrite = 54;
  342. isc_dpb_sec_attach = 55;
  343. isc_dpb_disable_wal = 56;
  344. isc_dpb_connect_timeout = 57;
  345. isc_dpb_dummy_packet_interval = 58;
  346. isc_dpb_gbak_attach = 59;
  347. isc_dpb_sql_role_name = 60;
  348. isc_dpb_set_page_buffers = 61;
  349. isc_dpb_working_directory = 62;
  350. isc_dpb_last_dpb_constant = isc_dpb_working_directory;
  351. isc_dpb_pages = 1;
  352. isc_dpb_records = 2;
  353. isc_dpb_indices = 4;
  354. isc_dpb_transactions = 8;
  355. isc_dpb_no_update = 16;
  356. isc_dpb_repair = 32;
  357. isc_dpb_ignore = 64;
  358. isc_dpb_shut_cache = 1;
  359. isc_dpb_shut_attachment = 2;
  360. isc_dpb_shut_transaction = 4;
  361. isc_dpb_shut_force = 8;
  362. RDB_system = 1;
  363. RDB_id_assigned = 2;
  364. isc_tpb_version1 = 1;
  365. isc_tpb_version3 = 3;
  366. isc_tpb_consistency = 1;
  367. isc_tpb_concurrency = 2;
  368. isc_tpb_shared = 3;
  369. isc_tpb_protected = 4;
  370. isc_tpb_exclusive = 5;
  371. isc_tpb_wait = 6;
  372. isc_tpb_nowait = 7;
  373. isc_tpb_read = 8;
  374. isc_tpb_write = 9;
  375. isc_tpb_lock_read = 10;
  376. isc_tpb_lock_write = 11;
  377. isc_tpb_verb_time = 12;
  378. isc_tpb_commit_time = 13;
  379. isc_tpb_ignore_limbo = 14;
  380. isc_tpb_read_committed = 15;
  381. isc_tpb_autocommit = 16;
  382. isc_tpb_rec_version = 17;
  383. isc_tpb_no_rec_version = 18;
  384. isc_tpb_restart_requests = 19;
  385. isc_tpb_no_auto_undo = 20;
  386. isc_tpb_last_tpb_constant = isc_tpb_no_auto_undo;
  387. isc_bpb_version1 = 1;
  388. isc_bpb_source_type = 1;
  389. isc_bpb_target_type = 2;
  390. isc_bpb_type = 3;
  391. isc_bpb_source_interp = 4;
  392. isc_bpb_target_interp = 5;
  393. isc_bpb_filter_parameter = 6;
  394. isc_bpb_type_segmented = 0;
  395. isc_bpb_type_stream = 1;
  396. isc_spb_version1 = 1;
  397. isc_spb_user_name = 2;
  398. isc_spb_sys_user_name = 3;
  399. isc_spb_sys_user_name_enc = 4;
  400. isc_spb_password = 5;
  401. isc_spb_password_enc = 6;
  402. isc_spb_command_line = 7;
  403. isc_spb_connect_timeout = isc_dpb_connect_timeout;
  404. isc_spb_dummy_packet_interval = isc_dpb_dummy_packet_interval;
  405. isc_spb_sql_role_name = isc_dpb_sql_role_name;
  406. isc_info_end = 1;
  407. isc_info_truncated = 2;
  408. isc_info_error = 3;
  409. isc_info_db_id = 4;
  410. isc_info_reads = 5;
  411. isc_info_writes = 6;
  412. isc_info_fetches = 7;
  413. isc_info_marks = 8;
  414. isc_info_implementation = 11;
  415. isc_info_version = 12;
  416. isc_info_base_level = 13;
  417. isc_info_page_size = 14;
  418. isc_info_num_buffers = 15;
  419. isc_info_limbo = 16;
  420. isc_info_current_memory = 17;
  421. isc_info_max_memory = 18;
  422. isc_info_window_turns = 19;
  423. isc_info_license = 20;
  424. isc_info_allocation = 21;
  425. isc_info_attachment_id = 22;
  426. isc_info_read_seq_count = 23;
  427. isc_info_read_idx_count = 24;
  428. isc_info_insert_count = 25;
  429. isc_info_update_count = 26;
  430. isc_info_delete_count = 27;
  431. isc_info_backout_count = 28;
  432. isc_info_purge_count = 29;
  433. isc_info_expunge_count = 30;
  434. isc_info_sweep_interval = 31;
  435. isc_info_ods_version = 32;
  436. isc_info_ods_minor_version = 33;
  437. isc_info_no_reserve = 34;
  438. isc_info_logfile = 35;
  439. isc_info_cur_logfile_name = 36;
  440. isc_info_cur_log_part_offset = 37;
  441. isc_info_num_wal_buffers = 38;
  442. isc_info_wal_buffer_size = 39;
  443. isc_info_wal_ckpt_length = 40;
  444. isc_info_wal_cur_ckpt_interval = 41;
  445. isc_info_wal_prv_ckpt_fname = 42;
  446. isc_info_wal_prv_ckpt_poffset = 43;
  447. isc_info_wal_recv_ckpt_fname = 44;
  448. isc_info_wal_recv_ckpt_poffset = 45;
  449. isc_info_wal_grpc_wait_usecs = 47;
  450. isc_info_wal_num_io = 48;
  451. isc_info_wal_avg_io_size = 49;
  452. isc_info_wal_num_commits = 50;
  453. isc_info_wal_avg_grpc_size = 51;
  454. isc_info_forced_writes = 52;
  455. isc_info_user_names = 53;
  456. isc_info_page_errors = 54;
  457. isc_info_record_errors = 55;
  458. isc_info_bpage_errors = 56;
  459. isc_info_dpage_errors = 57;
  460. isc_info_ipage_errors = 58;
  461. isc_info_ppage_errors = 59;
  462. isc_info_tpage_errors = 60;
  463. isc_info_set_page_buffers = 61;
  464. isc_info_db_impl_rdb_vms = 1;
  465. isc_info_db_impl_rdb_eln = 2;
  466. isc_info_db_impl_rdb_eln_dev = 3;
  467. isc_info_db_impl_rdb_vms_y = 4;
  468. isc_info_db_impl_rdb_eln_y = 5;
  469. isc_info_db_impl_jri = 6;
  470. isc_info_db_impl_jsv = 7;
  471. isc_info_db_impl_isc_a = 25;
  472. isc_info_db_impl_isc_u = 26;
  473. isc_info_db_impl_isc_v = 27;
  474. isc_info_db_impl_isc_s = 28;
  475. isc_info_db_impl_isc_apl_68K = 25;
  476. isc_info_db_impl_isc_vax_ultr = 26;
  477. isc_info_db_impl_isc_vms = 27;
  478. isc_info_db_impl_isc_sun_68k = 28;
  479. isc_info_db_impl_isc_os2 = 29;
  480. isc_info_db_impl_isc_sun4 = 30;
  481. isc_info_db_impl_isc_hp_ux = 31;
  482. isc_info_db_impl_isc_sun_386i = 32;
  483. isc_info_db_impl_isc_vms_orcl = 33;
  484. isc_info_db_impl_isc_mac_aux = 34;
  485. isc_info_db_impl_isc_rt_aix = 35;
  486. isc_info_db_impl_isc_mips_ult = 36;
  487. isc_info_db_impl_isc_xenix = 37;
  488. isc_info_db_impl_isc_dg = 38;
  489. isc_info_db_impl_isc_hp_mpexl = 39;
  490. isc_info_db_impl_isc_hp_ux68K = 40;
  491. isc_info_db_impl_isc_sgi = 41;
  492. isc_info_db_impl_isc_sco_unix = 42;
  493. isc_info_db_impl_isc_cray = 43;
  494. isc_info_db_impl_isc_imp = 44;
  495. isc_info_db_impl_isc_delta = 45;
  496. isc_info_db_impl_isc_next = 46;
  497. isc_info_db_impl_isc_dos = 47;
  498. isc_info_db_impl_isc_winnt = 48;
  499. isc_info_db_impl_isc_epson = 49;
  500. isc_info_db_class_access = 1;
  501. isc_info_db_class_y_valve = 2;
  502. isc_info_db_class_rem_int = 3;
  503. isc_info_db_class_rem_srvr = 4;
  504. isc_info_db_class_pipe_int = 7;
  505. isc_info_db_class_pipe_srvr = 8;
  506. isc_info_db_class_sam_int = 9;
  507. isc_info_db_class_sam_srvr = 10;
  508. isc_info_db_class_gateway = 11;
  509. isc_info_db_class_cache = 12;
  510. isc_info_number_messages = 4;
  511. isc_info_max_message = 5;
  512. isc_info_max_send = 6;
  513. isc_info_max_receive = 7;
  514. isc_info_state = 8;
  515. isc_info_message_number = 9;
  516. isc_info_message_size = 10;
  517. isc_info_request_cost = 11;
  518. isc_info_access_path = 12;
  519. isc_info_req_select_count = 13;
  520. isc_info_req_insert_count = 14;
  521. isc_info_req_update_count = 15;
  522. isc_info_req_delete_count = 16;
  523. isc_info_rsb_end = 0;
  524. isc_info_rsb_begin = 1;
  525. isc_info_rsb_type = 2;
  526. isc_info_rsb_relation = 3;
  527. isc_info_rsb_plan = 4;
  528. isc_info_rsb_unknown = 1;
  529. isc_info_rsb_indexed = 2;
  530. isc_info_rsb_navigate = 3;
  531. isc_info_rsb_sequential = 4;
  532. isc_info_rsb_cross = 5;
  533. isc_info_rsb_sort = 6;
  534. isc_info_rsb_first = 7;
  535. isc_info_rsb_boolean = 8;
  536. isc_info_rsb_union = 9;
  537. isc_info_rsb_aggregate = 10;
  538. isc_info_rsb_merge = 11;
  539. isc_info_rsb_ext_sequential = 12;
  540. isc_info_rsb_ext_indexed = 13;
  541. isc_info_rsb_ext_dbkey = 14;
  542. isc_info_rsb_left_cross = 15;
  543. isc_info_rsb_select = 16;
  544. isc_info_rsb_sql_join = 17;
  545. isc_info_rsb_simulate = 18;
  546. isc_info_rsb_sim_cross = 19;
  547. isc_info_rsb_once = 20;
  548. isc_info_rsb_procedure = 21;
  549. isc_info_rsb_and = 1;
  550. isc_info_rsb_or = 2;
  551. isc_info_rsb_dbkey = 3;
  552. isc_info_rsb_index = 4;
  553. isc_info_req_active = 2;
  554. isc_info_req_inactive = 3;
  555. isc_info_req_send = 4;
  556. isc_info_req_receive = 5;
  557. isc_info_req_select = 6;
  558. isc_info_req_sql_stall = 7;
  559. isc_info_blob_num_segments = 4;
  560. isc_info_blob_max_segment = 5;
  561. isc_info_blob_total_length = 6;
  562. isc_info_blob_type = 7;
  563. isc_info_tra_id = 4;
  564. isc_info_svc_version = 4;
  565. isc_info_svc_message = 5;
  566. isc_info_svc_total_length = 6;
  567. isc_info_svc_response = 7;
  568. isc_info_svc_response_more = 8;
  569. isc_info_svc_line = 9;
  570. isc_info_svc_to_eof = 10;
  571. isc_info_svc_timeout = 11;
  572. isc_info_svc_server_version = 12;
  573. isc_info_svc_implementation = 13;
  574. isc_info_svc_capabilities = 14;
  575. isc_info_svc_user_dbpath = 15;
  576. isc_info_svc_svr_db_info = 16;
  577. isc_info_svc_svr_online = 17;
  578. isc_info_svc_svr_offline = 18;
  579. isc_info_svc_get_config = 19;
  580. isc_info_svc_set_config = 20;
  581. isc_info_svc_default_config = 21;
  582. isc_info_svc_get_env = 22;
  583. isc_info_svc_get_env_lock = 23;
  584. isc_info_svc_get_env_msg = 24;
  585. isc_info_sql_select = 4;
  586. isc_info_sql_bind = 5;
  587. isc_info_sql_num_variables = 6;
  588. isc_info_sql_describe_vars = 7;
  589. isc_info_sql_describe_end = 8;
  590. isc_info_sql_sqlda_seq = 9;
  591. isc_info_sql_message_seq = 10;
  592. isc_info_sql_type = 11;
  593. isc_info_sql_sub_type = 12;
  594. isc_info_sql_scale = 13;
  595. isc_info_sql_length = 14;
  596. isc_info_sql_null_ind = 15;
  597. isc_info_sql_field = 16;
  598. isc_info_sql_relation = 17;
  599. isc_info_sql_owner = 18;
  600. isc_info_sql_alias = 19;
  601. isc_info_sql_sqlda_start = 20;
  602. isc_info_sql_stmt_type = 21;
  603. isc_info_sql_get_plan = 22;
  604. isc_info_sql_records = 23;
  605. isc_info_sql_batch_fetch = 24;
  606. isc_info_sql_stmt_select = 1;
  607. isc_info_sql_stmt_insert = 2;
  608. isc_info_sql_stmt_update = 3;
  609. isc_info_sql_stmt_delete = 4;
  610. isc_info_sql_stmt_ddl = 5;
  611. isc_info_sql_stmt_get_segment = 6;
  612. isc_info_sql_stmt_put_segment = 7;
  613. isc_info_sql_stmt_exec_procedure = 8;
  614. isc_info_sql_stmt_start_trans = 9;
  615. isc_info_sql_stmt_commit = 10;
  616. isc_info_sql_stmt_rollback = 11;
  617. isc_info_sql_stmt_select_for_upd = 12;
  618. isc_info_sql_stmt_set_generator = 13;
  619. ISCCFG_LOCKMEM_KEY = 0;
  620. ISCCFG_LOCKSEM_KEY = 1;
  621. ISCCFG_LOCKSIG_KEY = 2;
  622. ISCCFG_EVNTMEM_KEY = 3;
  623. ISCCFG_DBCACHE_KEY = 4;
  624. ISCCFG_PRIORITY_KEY = 5;
  625. ISCCFG_IPCMAP_KEY = 6;
  626. ISCCFG_MEMMIN_KEY = 7;
  627. ISCCFG_MEMMAX_KEY = 8;
  628. ISCCFG_LOCKORDER_KEY = 9;
  629. ISCCFG_ANYLOCKMEM_KEY = 10;
  630. ISCCFG_ANYLOCKSEM_KEY = 11;
  631. ISCCFG_ANYLOCKSIG_KEY = 12;
  632. ISCCFG_ANYEVNTMEM_KEY = 13;
  633. ISCCFG_LOCKHASH_KEY = 14;
  634. ISCCFG_DEADLOCK_KEY = 15;
  635. ISCCFG_LOCKSPIN_KEY = 16;
  636. ISCCFG_CONN_TIMEOUT_KEY = 17;
  637. ISCCFG_DUMMY_INTRVL_KEY = 18;
  638. isc_facility = 20;
  639. isc_err_base = 335544320;
  640. isc_err_factor = 1;
  641. isc_arg_end = 0;
  642. isc_arg_gds = 1;
  643. isc_arg_string = 2;
  644. isc_arg_cstring = 3;
  645. isc_arg_number = 4;
  646. isc_arg_interpreted = 5;
  647. isc_arg_vms = 6;
  648. isc_arg_unix = 7;
  649. isc_arg_domain = 8;
  650. isc_arg_dos = 9;
  651. isc_arg_mpexl = 10;
  652. isc_arg_mpexl_ipc = 11;
  653. isc_arg_next_mach = 15;
  654. isc_arg_netware = 16;
  655. isc_arg_win32 = 17;
  656. isc_arith_except = 335544321;
  657. isc_bad_dbkey = 335544322;
  658. isc_bad_db_format = 335544323;
  659. isc_bad_db_handle = 335544324;
  660. isc_bad_dpb_content = 335544325;
  661. isc_bad_dpb_form = 335544326;
  662. isc_bad_req_handle = 335544327;
  663. isc_bad_segstr_handle = 335544328;
  664. isc_bad_segstr_id = 335544329;
  665. isc_bad_tpb_content = 335544330;
  666. isc_bad_tpb_form = 335544331;
  667. isc_bad_trans_handle = 335544332;
  668. isc_bug_check = 335544333;
  669. isc_convert_error = 335544334;
  670. isc_db_corrupt = 335544335;
  671. isc_deadlock = 335544336;
  672. isc_excess_trans = 335544337;
  673. isc_from_no_match = 335544338;
  674. isc_infinap = 335544339;
  675. isc_infona = 335544340;
  676. isc_infunk = 335544341;
  677. isc_integ_fail = 335544342;
  678. isc_invalid_blr = 335544343;
  679. isc_io_error = 335544344;
  680. isc_lock_conflict = 335544345;
  681. isc_metadata_corrupt = 335544346;
  682. isc_not_valid = 335544347;
  683. isc_no_cur_rec = 335544348;
  684. isc_no_dup = 335544349;
  685. isc_no_finish = 335544350;
  686. isc_no_meta_update = 335544351;
  687. isc_no_priv = 335544352;
  688. isc_no_recon = 335544353;
  689. isc_no_record = 335544354;
  690. isc_no_segstr_close = 335544355;
  691. isc_obsolete_metadata = 335544356;
  692. isc_open_trans = 335544357;
  693. isc_port_len = 335544358;
  694. isc_read_only_field = 335544359;
  695. isc_read_only_rel = 335544360;
  696. isc_read_only_trans = 335544361;
  697. isc_read_only_view = 335544362;
  698. isc_req_no_trans = 335544363;
  699. isc_req_sync = 335544364;
  700. isc_req_wrong_db = 335544365;
  701. isc_segment = 335544366;
  702. isc_segstr_eof = 335544367;
  703. isc_segstr_no_op = 335544368;
  704. isc_segstr_no_read = 335544369;
  705. isc_segstr_no_trans = 335544370;
  706. isc_segstr_no_write = 335544371;
  707. isc_segstr_wrong_db = 335544372;
  708. isc_sys_request = 335544373;
  709. isc_stream_eof = 335544374;
  710. isc_unavailable = 335544375;
  711. isc_unres_rel = 335544376;
  712. isc_uns_ext = 335544377;
  713. isc_wish_list = 335544378;
  714. isc_wrong_ods = 335544379;
  715. isc_wronumarg = 335544380;
  716. isc_imp_exc = 335544381;
  717. isc_random = 335544382;
  718. isc_fatal_conflict = 335544383;
  719. isc_badblk = 335544384;
  720. isc_invpoolcl = 335544385;
  721. isc_nopoolids = 335544386;
  722. isc_relbadblk = 335544387;
  723. isc_blktoobig = 335544388;
  724. isc_bufexh = 335544389;
  725. isc_syntaxerr = 335544390;
  726. isc_bufinuse = 335544391;
  727. isc_bdbincon = 335544392;
  728. isc_reqinuse = 335544393;
  729. isc_badodsver = 335544394;
  730. isc_relnotdef = 335544395;
  731. isc_fldnotdef = 335544396;
  732. isc_dirtypage = 335544397;
  733. isc_waifortra = 335544398;
  734. isc_doubleloc = 335544399;
  735. isc_nodnotfnd = 335544400;
  736. isc_dupnodfnd = 335544401;
  737. isc_locnotmar = 335544402;
  738. isc_badpagtyp = 335544403;
  739. isc_corrupt = 335544404;
  740. isc_badpage = 335544405;
  741. isc_badindex = 335544406;
  742. isc_dbbnotzer = 335544407;
  743. isc_tranotzer = 335544408;
  744. isc_trareqmis = 335544409;
  745. isc_badhndcnt = 335544410;
  746. isc_wrotpbver = 335544411;
  747. isc_wroblrver = 335544412;
  748. isc_wrodpbver = 335544413;
  749. isc_blobnotsup = 335544414;
  750. isc_badrelation = 335544415;
  751. isc_nodetach = 335544416;
  752. isc_notremote = 335544417;
  753. isc_trainlim = 335544418;
  754. isc_notinlim = 335544419;
  755. isc_traoutsta = 335544420;
  756. isc_connect_reject = 335544421;
  757. isc_dbfile = 335544422;
  758. isc_orphan = 335544423;
  759. isc_no_lock_mgr = 335544424;
  760. isc_ctxinuse = 335544425;
  761. isc_ctxnotdef = 335544426;
  762. isc_datnotsup = 335544427;
  763. isc_badmsgnum = 335544428;
  764. isc_badparnum = 335544429;
  765. isc_virmemexh = 335544430;
  766. isc_blocking_signal = 335544431;
  767. isc_lockmanerr = 335544432;
  768. isc_journerr = 335544433;
  769. isc_keytoobig = 335544434;
  770. isc_nullsegkey = 335544435;
  771. isc_sqlerr = 335544436;
  772. isc_wrodynver = 335544437;
  773. isc_funnotdef = 335544438;
  774. isc_funmismat = 335544439;
  775. isc_bad_msg_vec = 335544440;
  776. isc_bad_detach = 335544441;
  777. isc_noargacc_read = 335544442;
  778. isc_noargacc_write = 335544443;
  779. isc_read_only = 335544444;
  780. isc_ext_err = 335544445;
  781. isc_non_updatable = 335544446;
  782. isc_no_rollback = 335544447;
  783. isc_bad_sec_info = 335544448;
  784. isc_invalid_sec_info = 335544449;
  785. isc_misc_interpreted = 335544450;
  786. isc_update_conflict = 335544451;
  787. isc_unlicensed = 335544452;
  788. isc_obj_in_use = 335544453;
  789. isc_nofilter = 335544454;
  790. isc_shadow_accessed = 335544455;
  791. isc_invalid_sdl = 335544456;
  792. isc_out_of_bounds = 335544457;
  793. isc_invalid_dimension = 335544458;
  794. isc_rec_in_limbo = 335544459;
  795. isc_shadow_missing = 335544460;
  796. isc_cant_validate = 335544461;
  797. isc_cant_start_journal = 335544462;
  798. isc_gennotdef = 335544463;
  799. isc_cant_start_logging = 335544464;
  800. isc_bad_segstr_type = 335544465;
  801. isc_foreign_key = 335544466;
  802. isc_high_minor = 335544467;
  803. isc_tra_state = 335544468;
  804. isc_trans_invalid = 335544469;
  805. isc_buf_invalid = 335544470;
  806. isc_indexnotdefined = 335544471;
  807. isc_login = 335544472;
  808. isc_invalid_bookmark = 335544473;
  809. isc_bad_lock_level = 335544474;
  810. isc_relation_lock = 335544475;
  811. isc_record_lock = 335544476;
  812. isc_max_idx = 335544477;
  813. isc_jrn_enable = 335544478;
  814. isc_old_failure = 335544479;
  815. isc_old_in_progress = 335544480;
  816. isc_old_no_space = 335544481;
  817. isc_no_wal_no_jrn = 335544482;
  818. isc_num_old_files = 335544483;
  819. isc_wal_file_open = 335544484;
  820. isc_bad_stmt_handle = 335544485;
  821. isc_wal_failure = 335544486;
  822. isc_walw_err = 335544487;
  823. isc_logh_small = 335544488;
  824. isc_logh_inv_version = 335544489;
  825. isc_logh_open_flag = 335544490;
  826. isc_logh_open_flag2 = 335544491;
  827. isc_logh_diff_dbname = 335544492;
  828. isc_logf_unexpected_eof = 335544493;
  829. isc_logr_incomplete = 335544494;
  830. isc_logr_header_small = 335544495;
  831. isc_logb_small = 335544496;
  832. isc_wal_illegal_attach = 335544497;
  833. isc_wal_invalid_wpb = 335544498;
  834. isc_wal_err_rollover = 335544499;
  835. isc_no_wal = 335544500;
  836. isc_drop_wal = 335544501;
  837. isc_stream_not_defined = 335544502;
  838. isc_wal_subsys_error = 335544503;
  839. isc_wal_subsys_corrupt = 335544504;
  840. isc_no_archive = 335544505;
  841. isc_shutinprog = 335544506;
  842. isc_range_in_use = 335544507;
  843. isc_range_not_found = 335544508;
  844. isc_charset_not_found = 335544509;
  845. isc_lock_timeout = 335544510;
  846. isc_prcnotdef = 335544511;
  847. isc_prcmismat = 335544512;
  848. isc_wal_bugcheck = 335544513;
  849. isc_wal_cant_expand = 335544514;
  850. isc_codnotdef = 335544515;
  851. isc_xcpnotdef = 335544516;
  852. isc_except = 335544517;
  853. isc_cache_restart = 335544518;
  854. isc_bad_lock_handle = 335544519;
  855. isc_jrn_present = 335544520;
  856. isc_wal_err_rollover2 = 335544521;
  857. isc_wal_err_logwrite = 335544522;
  858. isc_wal_err_jrn_comm = 335544523;
  859. isc_wal_err_expansion = 335544524;
  860. isc_wal_err_setup = 335544525;
  861. isc_wal_err_ww_sync = 335544526;
  862. isc_wal_err_ww_start = 335544527;
  863. isc_shutdown = 335544528;
  864. isc_existing_priv_mod = 335544529;
  865. isc_primary_key_ref = 335544530;
  866. isc_primary_key_notnull = 335544531;
  867. isc_ref_cnstrnt_notfound = 335544532;
  868. isc_foreign_key_notfound = 335544533;
  869. isc_ref_cnstrnt_update = 335544534;
  870. isc_check_cnstrnt_update = 335544535;
  871. isc_check_cnstrnt_del = 335544536;
  872. isc_integ_index_seg_del = 335544537;
  873. isc_integ_index_seg_mod = 335544538;
  874. isc_integ_index_del = 335544539;
  875. isc_integ_index_mod = 335544540;
  876. isc_check_trig_del = 335544541;
  877. isc_check_trig_update = 335544542;
  878. isc_cnstrnt_fld_del = 335544543;
  879. isc_cnstrnt_fld_rename = 335544544;
  880. isc_rel_cnstrnt_update = 335544545;
  881. isc_constaint_on_view = 335544546;
  882. isc_invld_cnstrnt_type = 335544547;
  883. isc_primary_key_exists = 335544548;
  884. isc_systrig_update = 335544549;
  885. isc_not_rel_owner = 335544550;
  886. isc_grant_obj_notfound = 335544551;
  887. isc_grant_fld_notfound = 335544552;
  888. isc_grant_nopriv = 335544553;
  889. isc_nonsql_security_rel = 335544554;
  890. isc_nonsql_security_fld = 335544555;
  891. isc_wal_cache_err = 335544556;
  892. isc_shutfail = 335544557;
  893. isc_check_constraint = 335544558;
  894. isc_bad_svc_handle = 335544559;
  895. isc_shutwarn = 335544560;
  896. isc_wrospbver = 335544561;
  897. isc_bad_spb_form = 335544562;
  898. isc_svcnotdef = 335544563;
  899. isc_no_jrn = 335544564;
  900. isc_transliteration_failed = 335544565;
  901. isc_start_cm_for_wal = 335544566;
  902. isc_wal_ovflow_log_required = 335544567;
  903. isc_text_subtype = 335544568;
  904. isc_dsql_error = 335544569;
  905. isc_dsql_command_err = 335544570;
  906. isc_dsql_constant_err = 335544571;
  907. isc_dsql_cursor_err = 335544572;
  908. isc_dsql_datatype_err = 335544573;
  909. isc_dsql_decl_err = 335544574;
  910. isc_dsql_cursor_update_err = 335544575;
  911. isc_dsql_cursor_open_err = 335544576;
  912. isc_dsql_cursor_close_err = 335544577;
  913. isc_dsql_field_err = 335544578;
  914. isc_dsql_internal_err = 335544579;
  915. isc_dsql_relation_err = 335544580;
  916. isc_dsql_procedure_err = 335544581;
  917. isc_dsql_request_err = 335544582;
  918. isc_dsql_sqlda_err = 335544583;
  919. isc_dsql_var_count_err = 335544584;
  920. isc_dsql_stmt_handle = 335544585;
  921. isc_dsql_function_err = 335544586;
  922. isc_dsql_blob_err = 335544587;
  923. isc_collation_not_found = 335544588;
  924. isc_collation_not_for_charset = 335544589;
  925. isc_dsql_dup_option = 335544590;
  926. isc_dsql_tran_err = 335544591;
  927. isc_dsql_invalid_array = 335544592;
  928. isc_dsql_max_arr_dim_exceeded = 335544593;
  929. isc_dsql_arr_range_error = 335544594;
  930. isc_dsql_trigger_err = 335544595;
  931. isc_dsql_subselect_err = 335544596;
  932. isc_dsql_crdb_prepare_err = 335544597;
  933. isc_specify_field_err = 335544598;
  934. isc_num_field_err = 335544599;
  935. isc_col_name_err = 335544600;
  936. isc_where_err = 335544601;
  937. isc_table_view_err = 335544602;
  938. isc_distinct_err = 335544603;
  939. isc_key_field_count_err = 335544604;
  940. isc_subquery_err = 335544605;
  941. isc_expression_eval_err = 335544606;
  942. isc_node_err = 335544607;
  943. isc_command_end_err = 335544608;
  944. isc_index_name = 335544609;
  945. isc_exception_name = 335544610;
  946. isc_field_name = 335544611;
  947. isc_token_err = 335544612;
  948. isc_union_err = 335544613;
  949. isc_dsql_construct_err = 335544614;
  950. isc_field_aggregate_err = 335544615;
  951. isc_field_ref_err = 335544616;
  952. isc_order_by_err = 335544617;
  953. isc_return_mode_err = 335544618;
  954. isc_extern_func_err = 335544619;
  955. isc_alias_conflict_err = 335544620;
  956. isc_procedure_conflict_error = 335544621;
  957. isc_relation_conflict_err = 335544622;
  958. isc_dsql_domain_err = 335544623;
  959. isc_idx_seg_err = 335544624;
  960. isc_node_name_err = 335544625;
  961. isc_table_name = 335544626;
  962. isc_proc_name = 335544627;
  963. isc_idx_create_err = 335544628;
  964. isc_wal_shadow_err = 335544629;
  965. isc_dependency = 335544630;
  966. isc_idx_key_err = 335544631;
  967. isc_dsql_file_length_err = 335544632;
  968. isc_dsql_shadow_number_err = 335544633;
  969. isc_dsql_token_unk_err = 335544634;
  970. isc_dsql_no_relation_alias = 335544635;
  971. isc_indexname = 335544636;
  972. isc_no_stream_plan = 335544637;
  973. isc_stream_twice = 335544638;
  974. isc_stream_not_found = 335544639;
  975. isc_collation_requires_text = 335544640;
  976. isc_dsql_domain_not_found = 335544641;
  977. isc_index_unused = 335544642;
  978. isc_dsql_self_join = 335544643;
  979. isc_stream_bof = 335544644;
  980. isc_stream_crack = 335544645;
  981. isc_db_or_file_exists = 335544646;
  982. isc_invalid_operator = 335544647;
  983. isc_conn_lost = 335544648;
  984. isc_bad_checksum = 335544649;
  985. isc_page_type_err = 335544650;
  986. isc_ext_readonly_err = 335544651;
  987. isc_sing_select_err = 335544652;
  988. isc_psw_attach = 335544653;
  989. isc_psw_start_trans = 335544654;
  990. isc_invalid_direction = 335544655;
  991. isc_dsql_var_conflict = 335544656;
  992. isc_dsql_no_blob_array = 335544657;
  993. isc_dsql_base_table = 335544658;
  994. isc_duplicate_base_table = 335544659;
  995. isc_view_alias = 335544660;
  996. isc_index_root_page_full = 335544661;
  997. isc_dsql_blob_type_unknown = 335544662;
  998. isc_req_max_clones_exceeded = 335544663;
  999. isc_dsql_duplicate_spec = 335544664;
  1000. isc_unique_key_violation = 335544665;
  1001. isc_srvr_version_too_old = 335544666;
  1002. isc_drdb_completed_with_errs = 335544667;
  1003. isc_dsql_procedure_use_err = 335544668;
  1004. isc_dsql_count_mismatch = 335544669;
  1005. isc_blob_idx_err = 335544670;
  1006. isc_array_idx_err = 335544671;
  1007. isc_key_field_err = 335544672;
  1008. isc_no_delete = 335544673;
  1009. isc_del_last_field = 335544674;
  1010. isc_sort_err = 335544675;
  1011. isc_sort_mem_err = 335544676;
  1012. isc_version_err = 335544677;
  1013. isc_inval_key_posn = 335544678;
  1014. isc_no_segments_err = 335544679;
  1015. isc_crrp_data_err = 335544680;
  1016. isc_rec_size_err = 335544681;
  1017. isc_dsql_field_ref = 335544682;
  1018. isc_req_depth_exceeded = 335544683;
  1019. isc_no_field_access = 335544684;
  1020. isc_no_dbkey = 335544685;
  1021. isc_jrn_format_err = 335544686;
  1022. isc_jrn_file_full = 335544687;
  1023. isc_dsql_open_cursor_request = 335544688;
  1024. isc_ib_error = 335544689;
  1025. isc_cache_redef = 335544690;
  1026. isc_cache_too_small = 335544691;
  1027. isc_log_redef = 335544692;
  1028. isc_log_too_small = 335544693;
  1029. isc_partition_too_small = 335544694;
  1030. isc_partition_not_supp = 335544695;
  1031. isc_log_length_spec = 335544696;
  1032. isc_precision_err = 335544697;
  1033. isc_scale_nogt = 335544698;
  1034. isc_expec_short = 335544699;
  1035. isc_expec_long = 335544700;
  1036. isc_expec_ushort = 335544701;
  1037. isc_like_escape_invalid = 335544702;
  1038. isc_svcnoexe = 335544703;
  1039. isc_net_lookup_err = 335544704;
  1040. isc_service_unknown = 335544705;
  1041. isc_host_unknown = 335544706;
  1042. isc_grant_nopriv_on_base = 335544707;
  1043. isc_dyn_fld_ambiguous = 335544708;
  1044. isc_dsql_agg_ref_err = 335544709;
  1045. isc_complex_view = 335544710;
  1046. isc_unprepared_stmt = 335544711;
  1047. isc_expec_positive = 335544712;
  1048. isc_dsql_sqlda_value_err = 335544713;
  1049. isc_invalid_array_id = 335544714;
  1050. isc_extfile_uns_op = 335544715;
  1051. isc_svc_in_use = 335544716;
  1052. isc_err_stack_limit = 335544717;
  1053. isc_invalid_key = 335544718;
  1054. isc_net_init_error = 335544719;
  1055. isc_loadlib_failure = 335544720;
  1056. isc_network_error = 335544721;
  1057. isc_net_connect_err = 335544722;
  1058. isc_net_connect_listen_err = 335544723;
  1059. isc_net_event_connect_err = 335544724;
  1060. isc_net_event_listen_err = 335544725;
  1061. isc_net_read_err = 335544726;
  1062. isc_net_write_err = 335544727;
  1063. isc_integ_index_deactivate = 335544728;
  1064. isc_integ_deactivate_primary = 335544729;
  1065. isc_cse_not_supported = 335544730;
  1066. isc_tra_must_sweep = 335544731;
  1067. isc_unsupported_network_drive = 335544732;
  1068. isc_io_create_err = 335544733;
  1069. isc_io_open_err = 335544734;
  1070. isc_io_close_err = 335544735;
  1071. isc_io_read_err = 335544736;
  1072. isc_io_write_err = 335544737;
  1073. isc_io_delete_err = 335544738;
  1074. isc_io_access_err = 335544739;
  1075. isc_udf_exception = 335544740;
  1076. isc_lost_db_connection = 335544741;
  1077. isc_no_write_user_priv = 335544742;
  1078. isc_token_too_long = 335544743;
  1079. isc_max_att_exceeded = 335544744;
  1080. isc_login_same_as_role_name = 335544745;
  1081. isc_usrname_too_long = 335544747;
  1082. isc_password_too_long = 335544748;
  1083. isc_usrname_required = 335544749;
  1084. isc_password_required = 335544750;
  1085. isc_bad_protocol = 335544751;
  1086. isc_dup_usrname_found = 335544752;
  1087. isc_usrname_not_found = 335544753;
  1088. isc_error_adding_sec_record = 335544754;
  1089. isc_error_modifying_sec_record = 335544755;
  1090. isc_error_deleting_sec_record = 335544756;
  1091. isc_error_updating_sec_db = 335544757;
  1092. isc_err_max = 425;
  1093. isc_dyn_version_1 = 1;
  1094. isc_dyn_eoc = -1;
  1095. isc_dyn_begin = 2;
  1096. isc_dyn_end = 3;
  1097. isc_dyn_if = 4;
  1098. isc_dyn_def_database = 5;
  1099. isc_dyn_def_global_fld = 6;
  1100. isc_dyn_def_local_fld = 7;
  1101. isc_dyn_def_idx = 8;
  1102. isc_dyn_def_rel = 9;
  1103. isc_dyn_def_sql_fld = 10;
  1104. isc_dyn_def_view = 12;
  1105. isc_dyn_def_trigger = 15;
  1106. isc_dyn_def_security_class = 120;
  1107. isc_dyn_def_dimension = 140;
  1108. isc_dyn_def_generator = 24;
  1109. isc_dyn_def_function = 25;
  1110. isc_dyn_def_filter = 26;
  1111. isc_dyn_def_function_arg = 27;
  1112. isc_dyn_def_shadow = 34;
  1113. isc_dyn_def_trigger_msg = 17;
  1114. isc_dyn_def_file = 36;
  1115. isc_dyn_mod_database = 39;
  1116. isc_dyn_mod_rel = 11;
  1117. isc_dyn_mod_global_fld = 13;
  1118. isc_dyn_mod_idx = 102;
  1119. isc_dyn_mod_local_fld = 14;
  1120. isc_dyn_mod_view = 16;
  1121. isc_dyn_mod_security_class = 122;
  1122. isc_dyn_mod_trigger = 113;
  1123. isc_dyn_mod_trigger_msg = 28;
  1124. isc_dyn_delete_database = 18;
  1125. isc_dyn_delete_rel = 19;
  1126. isc_dyn_delete_global_fld = 20;
  1127. isc_dyn_delete_local_fld = 21;
  1128. isc_dyn_delete_idx = 22;
  1129. isc_dyn_delete_security_class = 123;
  1130. isc_dyn_delete_dimensions = 143;
  1131. isc_dyn_delete_trigger = 23;
  1132. isc_dyn_delete_trigger_msg = 29;
  1133. isc_dyn_delete_filter = 32;
  1134. isc_dyn_delete_function = 33;
  1135. isc_dyn_delete_shadow = 35;
  1136. isc_dyn_grant = 30;
  1137. isc_dyn_revoke = 31;
  1138. isc_dyn_def_primary_key = 37;
  1139. isc_dyn_def_foreign_key = 38;
  1140. isc_dyn_def_unique = 40;
  1141. isc_dyn_def_procedure = 164;
  1142. isc_dyn_delete_procedure = 165;
  1143. isc_dyn_def_parameter = 135;
  1144. isc_dyn_delete_parameter = 136;
  1145. isc_dyn_mod_procedure = 175;
  1146. isc_dyn_def_log_file = 176;
  1147. isc_dyn_def_cache_file = 180;
  1148. isc_dyn_def_exception = 181;
  1149. isc_dyn_mod_exception = 182;
  1150. isc_dyn_del_exception = 183;
  1151. isc_dyn_drop_log = 194;
  1152. isc_dyn_drop_cache = 195;
  1153. isc_dyn_def_default_log = 202;
  1154. isc_dyn_view_blr = 43;
  1155. isc_dyn_view_source = 44;
  1156. isc_dyn_view_relation = 45;
  1157. isc_dyn_view_context = 46;
  1158. isc_dyn_view_context_name = 47;
  1159. isc_dyn_rel_name = 50;
  1160. isc_dyn_fld_name = 51;
  1161. isc_dyn_idx_name = 52;
  1162. isc_dyn_description = 53;
  1163. isc_dyn_security_class = 54;
  1164. isc_dyn_system_flag = 55;
  1165. isc_dyn_update_flag = 56;
  1166. isc_dyn_prc_name = 166;
  1167. isc_dyn_prm_name = 137;
  1168. isc_dyn_sql_object = 196;
  1169. isc_dyn_fld_character_set_name = 174;
  1170. isc_dyn_rel_dbkey_length = 61;
  1171. isc_dyn_rel_store_trig = 62;
  1172. isc_dyn_rel_modify_trig = 63;
  1173. isc_dyn_rel_erase_trig = 64;
  1174. isc_dyn_rel_store_trig_source = 65;
  1175. isc_dyn_rel_modify_trig_source = 66;
  1176. isc_dyn_rel_erase_trig_source = 67;
  1177. isc_dyn_rel_ext_file = 68;
  1178. isc_dyn_rel_sql_protection = 69;
  1179. isc_dyn_rel_constraint = 162;
  1180. isc_dyn_delete_rel_constraint = 163;
  1181. isc_dyn_fld_type = 70;
  1182. isc_dyn_fld_length = 71;
  1183. isc_dyn_fld_scale = 72;
  1184. isc_dyn_fld_sub_type = 73;
  1185. isc_dyn_fld_segment_length = 74;
  1186. isc_dyn_fld_query_header = 75;
  1187. isc_dyn_fld_edit_string = 76;
  1188. isc_dyn_fld_validation_blr = 77;
  1189. isc_dyn_fld_validation_source = 78;
  1190. isc_dyn_fld_computed_blr = 79;
  1191. isc_dyn_fld_computed_source = 80;
  1192. isc_dyn_fld_missing_value = 81;
  1193. isc_dyn_fld_default_value = 82;
  1194. isc_dyn_fld_query_name = 83;
  1195. isc_dyn_fld_dimensions = 84;
  1196. isc_dyn_fld_not_null = 85;
  1197. isc_dyn_fld_char_length = 172;
  1198. isc_dyn_fld_collation = 173;
  1199. isc_dyn_fld_default_source = 193;
  1200. isc_dyn_del_default = 197;
  1201. isc_dyn_del_validation = 198;
  1202. isc_dyn_single_validation = 199;
  1203. isc_dyn_fld_character_set = 203;
  1204. isc_dyn_fld_source = 90;
  1205. isc_dyn_fld_base_fld = 91;
  1206. isc_dyn_fld_position = 92;
  1207. isc_dyn_fld_update_flag = 93;
  1208. isc_dyn_idx_unique = 100;
  1209. isc_dyn_idx_inactive = 101;
  1210. isc_dyn_idx_type = 103;
  1211. isc_dyn_idx_foreign_key = 104;
  1212. isc_dyn_idx_ref_column = 105;
  1213. isc_dyn_idx_statistic = 204;
  1214. isc_dyn_trg_type = 110;
  1215. isc_dyn_trg_blr = 111;
  1216. isc_dyn_trg_source = 112;
  1217. isc_dyn_trg_name = 114;
  1218. isc_dyn_trg_sequence = 115;
  1219. isc_dyn_trg_inactive = 116;
  1220. isc_dyn_trg_msg_number = 117;
  1221. isc_dyn_trg_msg = 118;
  1222. isc_dyn_scl_acl = 121;
  1223. isc_dyn_grant_user = 130;
  1224. isc_dyn_grant_proc = 186;
  1225. isc_dyn_grant_trig = 187;
  1226. isc_dyn_grant_view = 188;
  1227. isc_dyn_grant_options = 132;
  1228. isc_dyn_grant_user_group = 205;
  1229. isc_dyn_dim_lower = 141;
  1230. isc_dyn_dim_upper = 142;
  1231. isc_dyn_file_name = 125;
  1232. isc_dyn_file_start = 126;
  1233. isc_dyn_file_length = 127;
  1234. isc_dyn_shadow_number = 128;
  1235. isc_dyn_shadow_man_auto = 129;
  1236. isc_dyn_shadow_conditional = 130;
  1237. isc_dyn_log_file_sequence = 177;
  1238. isc_dyn_log_file_partitions = 178;
  1239. isc_dyn_log_file_serial = 179;
  1240. isc_dyn_log_file_overflow = 200;
  1241. isc_dyn_log_file_raw = 201;
  1242. isc_dyn_log_group_commit_wait = 189;
  1243. isc_dyn_log_buffer_size = 190;
  1244. isc_dyn_log_check_point_length = 191;
  1245. isc_dyn_log_num_of_buffers = 192;
  1246. isc_dyn_function_name = 145;
  1247. isc_dyn_function_type = 146;
  1248. isc_dyn_func_module_name = 147;
  1249. isc_dyn_func_entry_point = 148;
  1250. isc_dyn_func_return_argument = 149;
  1251. isc_dyn_func_arg_position = 150;
  1252. isc_dyn_func_mechanism = 151;
  1253. isc_dyn_filter_in_subtype = 152;
  1254. isc_dyn_filter_out_subtype = 153;
  1255. isc_dyn_description2 = 154;
  1256. isc_dyn_fld_computed_source2 = 155;
  1257. isc_dyn_fld_edit_string2 = 156;
  1258. isc_dyn_fld_query_header2 = 157;
  1259. isc_dyn_fld_validation_source2 = 158;
  1260. isc_dyn_trg_msg2 = 159;
  1261. isc_dyn_trg_source2 = 160;
  1262. isc_dyn_view_source2 = 161;
  1263. isc_dyn_xcp_msg2 = 184;
  1264. isc_dyn_generator_name = 95;
  1265. isc_dyn_generator_id = 96;
  1266. isc_dyn_prc_inputs = 167;
  1267. isc_dyn_prc_outputs = 168;
  1268. isc_dyn_prc_source = 169;
  1269. isc_dyn_prc_blr = 170;
  1270. isc_dyn_prc_source2 = 171;
  1271. isc_dyn_prm_number = 138;
  1272. isc_dyn_prm_type = 139;
  1273. isc_dyn_xcp_msg = 185;
  1274. isc_dyn_foreign_key_update = 205;
  1275. isc_dyn_foreign_key_delete = 206;
  1276. isc_dyn_foreign_key_cascade = 207;
  1277. isc_dyn_foreign_key_default = 208;
  1278. isc_dyn_foreign_key_null = 209;
  1279. isc_dyn_foreign_key_none = 210;
  1280. isc_dyn_def_sql_role = 211;
  1281. isc_dyn_sql_role_name = 212;
  1282. isc_dyn_grant_admin_options = 213;
  1283. isc_dyn_del_sql_role = 214;
  1284. isc_dyn_last_dyn_value = 214;
  1285. isc_sdl_version1 = 1;
  1286. isc_sdl_eoc = -1;
  1287. isc_sdl_relation = 2;
  1288. isc_sdl_rid = 3;
  1289. isc_sdl_field = 4;
  1290. isc_sdl_fid = 5;
  1291. isc_sdl_struct = 6;
  1292. isc_sdl_variable = 7;
  1293. isc_sdl_scalar = 8;
  1294. isc_sdl_tiny_integer = 9;
  1295. isc_sdl_short_integer = 10;
  1296. isc_sdl_long_integer = 11;
  1297. isc_sdl_literal = 12;
  1298. isc_sdl_add = 13;
  1299. isc_sdl_subtract = 14;
  1300. isc_sdl_multiply = 15;
  1301. isc_sdl_divide = 16;
  1302. isc_sdl_negate = 17;
  1303. isc_sdl_eql = 18;
  1304. isc_sdl_neq = 19;
  1305. isc_sdl_gtr = 20;
  1306. isc_sdl_geq = 21;
  1307. isc_sdl_lss = 22;
  1308. isc_sdl_leq = 23;
  1309. isc_sdl_and = 24;
  1310. isc_sdl_or = 25;
  1311. isc_sdl_not = 26;
  1312. isc_sdl_while = 27;
  1313. isc_sdl_assignment = 28;
  1314. isc_sdl_label = 29;
  1315. isc_sdl_leave = 30;
  1316. isc_sdl_begin = 31;
  1317. isc_sdl_end = 32;
  1318. isc_sdl_do3 = 33;
  1319. isc_sdl_do2 = 34;
  1320. isc_sdl_do1 = 35;
  1321. isc_sdl_element = 36;
  1322. isc_interp_eng_ascii = 0;
  1323. isc_interp_jpn_sjis = 5;
  1324. isc_interp_jpn_euc = 6;
  1325. isc_fetch_next = 0;
  1326. isc_fetch_prior = 1;
  1327. isc_fetch_first = 2;
  1328. isc_fetch_last = 3;
  1329. isc_fetch_absolute = 4;
  1330. isc_fetch_relative = 5;
  1331. SQLDA_VERSION1 = 1;
  1332. SQL_VARYING = 448;
  1333. SQL_TEXT = 452;
  1334. SQL_DOUBLE = 480;
  1335. SQL_FLOAT = 482;
  1336. SQL_LONG = 496;
  1337. SQL_SHORT = 500;
  1338. SQL_DATE = 510;
  1339. SQL_BLOB = 520;
  1340. SQL_D_FLOAT = 530;
  1341. SQL_ARRAY = 540;
  1342. SQL_QUAD = 550;
  1343. isc_blob_untyped = 0;
  1344. isc_blob_text = 1;
  1345. isc_blob_blr = 2;
  1346. isc_blob_acl = 3;
  1347. isc_blob_ranges = 4;
  1348. isc_blob_summary = 5;
  1349. isc_blob_format = 6;
  1350. isc_blob_tra = 7;
  1351. isc_blob_extfile = 8;
  1352. isc_blob_formatted_memo = 20;
  1353. isc_blob_paradox_ole = 21;
  1354. isc_blob_graphic = 22;
  1355. isc_blob_dbase_ole = 23;
  1356. isc_blob_typed_binary = 24;
  1357. // TYPESTART (to quickly get here, look for TYPESTART)
  1358. type
  1359. TISC_ATT_HANDLE = PVoid;
  1360. PISC_ATT_HANDLE = ^TISC_ATT_HANDLE;
  1361. TISC_BLOB_HANDLE = PVoid;
  1362. PISC_BLOB_HANDLE = ^TISC_BLOB_HANDLE;
  1363. TISC_DB_HANDLE = PVoid;
  1364. PISC_DB_HANDLE = ^TISC_DB_HANDLE;
  1365. TISC_FORM_HANDLE = PVoid;
  1366. PISC_FORM_HANDLE = ^TISC_FORM_HANDLE;
  1367. TISC_REQ_HANDLE = PVoid;
  1368. PISC_REQ_HANDLE = ^TISC_REQ_HANDLE;
  1369. TISC_STMT_HANDLE = PVoid;
  1370. PISC_STMT_HANDLE = ^TISC_STMT_HANDLE;
  1371. TISC_SVC_HANDLE = PVoid;
  1372. PISC_SVC_HANDLE = ^TISC_SVC_HANDLE;
  1373. TISC_TR_HANDLE = PVoid;
  1374. PISC_TR_HANDLE = ^TISC_TR_HANDLE;
  1375. TISC_WIN_HANDLE = PVoid;
  1376. PISC_WIN_HANDLE = ^TISC_WIN_HANDLE;
  1377. TISC_CALLBACK = procedure;
  1378. TGDS_QUAD = record
  1379. gds_quad_high : ISC_LONG;
  1380. gds_quad_low : UISC_LONG;
  1381. end;
  1382. TGDS__QUAD = TGDS_QUAD;
  1383. TISC_QUAD = TGDS_QUAD;
  1384. PGDS_QUAD = ^TGDS_QUAD;
  1385. PGDS__QUAD = ^TGDS__QUAD;
  1386. PISC_QUAD = ^TISC_QUAD;
  1387. TISC_ARRAY_BOUND = record
  1388. array_bound_lower : short;
  1389. array_bound_upper : short;
  1390. end;
  1391. PISC_ARRAY_BOUND = ^TISC_ARRAY_BOUND;
  1392. TISC_ARRAY_DESC = record
  1393. array_desc_dtype : UChar;
  1394. array_desc_scale : Char;
  1395. array_desc_length : UShort;
  1396. array_desc_field_name : array[0..31] of Char;
  1397. array_desc_relation_name : array[0..31] of Char;
  1398. array_desc_dimensions : Short;
  1399. array_desc_flags : Short;
  1400. array_desc_bounds : array[0..15] of TISC_ARRAY_BOUND;
  1401. end;
  1402. PISC_ARRAY_DESC = ^TISC_ARRAY_DESC;
  1403. TISC_BLOB_DESC = record
  1404. blob_desc_subtype : Short;
  1405. blob_desc_charset : Short;
  1406. blob_desc_segment_size : Short;
  1407. blob_desc_field_name : array[0..31] of UChar;
  1408. blob_desc_relation_name : array[0..31] of UChar;
  1409. end;
  1410. PISC_BLOB_DESC = ^TISC_BLOB_DESC;
  1411. TISC_BLOB_CTL_SOURCE_FUNCTION = function : ISC_STATUS; // ISC_FAR
  1412. PISC_BLOB_CTL = ^TISC_BLOB_CTL; // ISC_FAR
  1413. TISC_BLOB_CTL = record
  1414. ctl_source : TISC_BLOB_CTL_SOURCE_FUNCTION;
  1415. ctl_source_handle : PISC_BLOB_CTL;
  1416. ctl_to_sub_type : Short;
  1417. ctl_from_sub_type : Short;
  1418. ctl_buffer_length : UShort;
  1419. ctl_segment_length : UShort;
  1420. ctl_bpb_length : UShort;
  1421. ctl_bpb : PChar;
  1422. ctl_buffer : PUChar;
  1423. ctl_max_segment : ISC_LONG;
  1424. ctl_number_segments : ISC_LONG;
  1425. ctl_total_length : ISC_LONG;
  1426. ctl_status : PISC_STATUS;
  1427. ctl_data : array[0..7] of long;
  1428. end;
  1429. TBSTREAM = record
  1430. bstr_blob : PVoid;
  1431. bstr_buffer : PChar;
  1432. bstr_ptr : PChar;
  1433. bstr_length : Short;
  1434. bstr_cnt : Short;
  1435. bstr_mode : Char;
  1436. end;
  1437. PBSTREAM = ^TBSTREAM;
  1438. TSQLVAR = record
  1439. sqltype : Short;
  1440. sqllen : Short;
  1441. sqldata : PChar;
  1442. sqlind : PShort;
  1443. sqlname_length : Short;
  1444. sqlname : array[0..29] of Char;
  1445. end;
  1446. PSQLVAR = ^TSQLVAR;
  1447. TSQLDA = record
  1448. sqldaid : array[0..7] of Char;
  1449. sqldabc : ISC_LONG;
  1450. sqln : Short;
  1451. sqld : Short;
  1452. sqlvar : array[0..0] of TSQLVAR;
  1453. end;
  1454. PSQLDA = ^TSQLDA;
  1455. TXSQLVAR = record
  1456. sqltype : Short;
  1457. sqlscale : Short;
  1458. sqlsubtype : Short;
  1459. sqllen : Short;
  1460. sqldata : PChar;
  1461. sqlind : PShort;
  1462. sqlname_length : Short;
  1463. sqlname : array[0..31] of Char;
  1464. relname_length : Short;
  1465. relname : array[0..31] of Char;
  1466. ownname_length : Short;
  1467. ownname : array[0..31] of Char;
  1468. aliasname_length : Short;
  1469. aliasname : array[0..31] of Char;
  1470. end;
  1471. PXSQLVAR = ^TXSQLVAR;
  1472. TXSQLDA = record
  1473. version : Short;
  1474. pad : Short;
  1475. sqldaid : array[0..7] of Char;
  1476. sqldabc : ISC_LONG;
  1477. sqln : Short;
  1478. sqld : Short;
  1479. sqlvar : array[0..0] of TXSQLVAR;
  1480. end;
  1481. PXSQLDA = ^TXSQLDA;
  1482. TISC_START_TRANS = record
  1483. db_handle : PISC_DB_HANDLE;
  1484. tpb_length : UShort; // Should it be long?
  1485. tpb_address : PChar;
  1486. end;
  1487. TISC_TEB = record
  1488. db_handle : PISC_DB_HANDLE;
  1489. tpb_length : Long;
  1490. tpb_address : PChar;
  1491. end;
  1492. PISC_TEB = ^TISC_TEB;
  1493. TISC_TEB_ARRAY = array[0..0] of TISC_TEB;
  1494. PISC_TEB_ARRAY = ^TISC_TEB_ARRAY;
  1495. TUserSecData = record
  1496. sec_flags : Short;
  1497. uid : Int;
  1498. gid : int;
  1499. protocol : Int;
  1500. server : PChar;
  1501. user_name : PChar;
  1502. password : PChar;
  1503. group_name : PChar;
  1504. first_name : PChar;
  1505. middle_name : PChar;
  1506. last_name : PChar;
  1507. dba_user_name : PChar;
  1508. dba_password : PChar;
  1509. end;
  1510. PUserSecData = ^TUserSecData;
  1511. // FUNCSTART (to quickly get here, look for FUNCSTART)
  1512. function isc_attach_database (status_vector : PISC_STATUS;db_name_length: Short;db_name: PChar;db_handle: PISC_DB_HANDLE;parm_buffer_length:Short;parm_buffer: PChar): ISC_STATUS; stdcall; external LibName;
  1513. function isc_array_gen_sdl (status_vector : PISC_STATUS;isc_array_desc: PISC_ARRAY_DESC;isc_arg3 : PShort;isc_arg4 : PChar;isc_arg5 : PShort): ISC_STATUS;stdcall; external LibName;
  1514. function isc_array_get_slice (status_vector : PISC_STATUS;db_handle: PISC_DB_HANDLE;trans_handle : PISC_TR_HANDLE;array_id : PISC_QUAD;descriptor : PISC_ARRAY_DESC;dest_array : PVoid;slice_length : ISC_LONG): ISC_STATUS;stdcall; external LibName;
  1515. function isc_array_lookup_bounds (status_vector : PISC_STATUS;db_handle: PISC_DB_HANDLE;trans_handle : PISC_TR_HANDLE;table_name,column_name : PChar;descriptor : PISC_ARRAY_DESC): ISC_STATUS;stdcall; external LibName;
  1516. function isc_array_lookup_desc (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;trans_handle : PISC_TR_HANDLE;table_name,column_name : PChar;descriptor : PISC_ARRAY_DESC) : ISC_STATUS; stdcall; external LibName;
  1517. function isc_array_set_desc (status_vector : PISC_STATUS;table_name : PChar;column_name : PChar;sql_dtype,sql_length,sql_dimensions : PShort;descriptor : PISC_ARRAY_DESC) : ISC_STATUS;stdcall; external LibName;
  1518. function isc_array_put_slice (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;trans_handle : PISC_TR_HANDLE;array_id : PISC_QUAD;descriptor : PISC_ARRAY_DESC;source_array : PVoid;slice_length : PISC_LONG) : ISC_STATUS;stdcall; external LibName;
  1519. procedure isc_blob_default_desc (descriptor : PISC_BLOB_DESC;table_name : PUChar;column_name : PUChar);stdcall; external LibName;
  1520. function isc_blob_gen_bpb (status_vector : PISC_STATUS;to_descriptor,from_descriptor : PISC_BLOB_DESC;bpb_buffer_length : UShort;bpb_buffer : PUChar;bpb_length : PUShort) : ISC_STATUS;stdcall; external LibName;
  1521. function isc_blob_info (status_vector : PISC_STATUS;blob_handle : PISC_BLOB_HANDLE;item_list_buffer_length : Short;item_list_buffer : PChar;result_buffer_length : Short;result_buffer : PChar) : ISC_STATUS;stdcall; external LibName;
  1522. function isc_blob_lookup_desc (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;trans_handle : PISC_TR_HANDLE;table_name,column_name : PChar;descriptor : PISC_BLOB_DESC;global : PUChar) : ISC_STATUS;stdcall; external LibName;
  1523. function isc_blob_set_desc (status_vector : PISC_STATUS;table_name,column_name : PChar;subtype,charset,segment_size : Short;descriptor : PISC_BLOB_DESC) : ISC_STATUS;stdcall; external LibName;
  1524. function isc_cancel_blob (status_vector : PISC_STATUS;blob_handle : PISC_BLOB_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1525. function isc_cancel_events (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;event_id : PISC_LONG) : ISC_STATUS;stdcall; external LibName;
  1526. function isc_close_blob (status_vector : PISC_STATUS;blob_handle : PISC_BLOB_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1527. function isc_commit_retaining (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1528. function isc_commit_transaction (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1529. function isc_create_blob (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;blob_handle : PISC_BLOB_HANDLE;blob_id : PISC_QUAD) : ISC_STATUS;stdcall; external LibName;
  1530. function isc_create_blob2 (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;blob_handle : PISC_BLOB_HANDLE;blob_id : PISC_QUAD;bpb_length : Short;bpb_address : PChar) : ISC_STATUS;stdcall; external LibName;
  1531. function isc_create_database (status_vector : PISC_STATUS;isc_arg2 : Short;isc_arg3 : PChar;db_handle : PISC_DB_HANDLE;isc_arg5 : Short;isc_arg6 : PChar;isc_arg7 : Short) : ISC_STATUS;stdcall; external LibName;
  1532. function isc_database_info (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;item_list_buffer_length : Short;item_list_buffer : PChar;result_buffer_length : Short;result_buffer : PChar) : ISC_STATUS;stdcall; external LibName;
  1533. procedure isc_decode_date (ib_date : PISC_QUAD;tm_date : PCTimeStructure);stdcall; external LibName;
  1534. function isc_detach_database (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1535. function isc_drop_database (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1536. function SQLDA_LENGTH (n : Long) : Long;function XSQLDA_LENGTH (n : Long) : Long;function isc_dsql_allocate_statement (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;stmt_handle : PISC_STMT_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1537. function isc_dsql_alloc_statement2 (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;stmt_handle : PISC_STMT_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1538. function isc_dsql_describe (status_vector : PISC_STATUS;stmt_handle : PISC_STMT_HANDLE;dialect : UShort;xsqlda : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1539. function isc_dsql_describe_bind (status_vector : PISC_STATUS;stmt_handle : PISC_STMT_HANDLE;dialect : UShort;xsqlda : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1540. function isc_dsql_exec_immed2 (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;length : UShort;statement : PChar;dialect : UShort;in_xsqlda,out_xsqlda : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1541. function isc_dsql_execute (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;stmt_handle : PISC_STMT_HANDLE;dialect : UShort;xsqlda : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1542. function isc_dsql_execute2 (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;stmt_handle : PISC_STMT_HANDLE;dialect : UShort;in_xsqlda,out_xsqlda : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1543. function isc_dsql_execute_immediate (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;length : UShort;statement : PChar;dialect : UShort;xsqlda : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1544. function isc_dsql_fetch (status_vector : PISC_STATUS;stmt_handle : PISC_STMT_HANDLE;dialect : UShort;xsqlda : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1545. function isc_dsql_finish (db_handle : PISC_DB_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1546. function isc_dsql_free_statement (status_vector : PISC_STATUS;stmt_handle : PISC_STMT_HANDLE;options : UShort) : ISC_STATUS; stdcall; external LibName;
  1547. function isc_dsql_insert (status_vector : PISC_STATUS;stmt_handle : PISC_STMT_HANDLE;arg3 : UShort;xsqlda : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1548. function isc_dsql_prepare (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;stmt_handle : PISC_STMT_HANDLE;length : UShort;statement : PChar;dialect : UShort;xsqlda : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1549. function isc_dsql_set_cursor_name (status_vector : PISC_STATUS;stmt_handle : PISC_STMT_HANDLE;cursor_name : PChar;_type : UShort) : ISC_STATUS;stdcall; external LibName;
  1550. function isc_dsql_sql_info (status_vector : PISC_STATUS;stmt_handle : PISC_STMT_HANDLE;item_length : UShort; items : PChar;buffer_length : UShort; buffer : PChar) : ISC_STATUS;stdcall; external LibName;
  1551. procedure isc_encode_date (tm_date : PCTimeStructure;ib_date : PISC_QUAD);stdcall; external LibName;
  1552. function isc_event_block (event_buffer : PPChar;result_buffer : PPChar;id_count : UShort;event_list : array of PChar) : ISC_LONG;cdecl; external LibName;
  1553. procedure isc_event_counts (status_vector : PISC_STATUS;buffer_length : Short;event_buffer : PChar;result_buffer : PChar);stdcall; external LibName;
  1554. procedure isc_expand_dpb (dpb : PPChar;dpb_length : PShort;item_list : array of Pointer);cdecl; external LibName;
  1555. function isc_modify_dpb (dpb : PPChar;isc_arg2,isc_arg3 : PShort;isc_arg4 : UShort;isc_arg5 : PChar;isc_arg6 : Short) : Int;stdcall; external LibName;
  1556. function isc_free (isc_arg1 : PChar) : ISC_LONG;stdcall; external LibName;
  1557. function isc_get_segment (status_vector : PISC_STATUS;blob_handle : PISC_BLOB_HANDLE;actual_seg_length : PUShort;seg_buffer_length : UShort;seg_buffer : PChar) : ISC_STATUS;stdcall; external LibName;
  1558. function isc_get_slice (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : PISC_QUAD;isc_arg5 : Short;isc_arg6 : PChar;isc_arg7 : Short;isc_arg8 : PISC_LONG;isc_arg9 : ISC_LONG;isc_arg10 : PVoid;isc_arg11 : PISC_LONG) : ISC_STATUS;stdcall; external LibName;
  1559. function isc_interprete (buffer : PChar;status_vector : PPISC_STATUS) : ISC_STATUS;stdcall; external LibName;
  1560. function isc_open_blob (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;blob_handle : PISC_BLOB_HANDLE;blob_id : PISC_QUAD) : ISC_STATUS;stdcall; external LibName;
  1561. function isc_open_blob2 (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;blob_handle : PISC_BLOB_HANDLE;blob_id : PISC_QUAD;bpb_length : Short;bpb_buffer : PChar) : ISC_STATUS;stdcall; external LibName;
  1562. function isc_prepare_transaction2 (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;msg_length : Short;msg : PChar) : ISC_STATUS;stdcall; external LibName;
  1563. procedure isc_print_sqlerror (sqlcode : Short;status_vector : PISC_STATUS);stdcall; external LibName;
  1564. function isc_print_status (status_vector : PISC_STATUS) : ISC_STATUS;stdcall; external LibName;
  1565. function isc_put_segment (status_vector : PISC_STATUS;blob_handle : PISC_BLOB_HANDLE;seg_buffer_len : UShort;seg_buffer : PChar) : ISC_STATUS;stdcall; external LibName;
  1566. function isc_put_slice (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : PISC_QUAD;isc_arg5 : Short;isc_arg6 : PChar;isc_arg7 : Short;isc_arg8 : PISC_LONG;isc_arg9 : ISC_LONG;isc_arg10 : PVoid) : ISC_STATUS;stdcall; external LibName;
  1567. function isc_que_events (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;event_id : PISC_LONG;length : Short;event_buffer : PChar;event_function : TISC_CALLBACK;event_function_arg : PVoid) : ISC_STATUS;stdcall; external LibName;
  1568. function isc_rollback_transaction (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1569. function isc_start_multiple (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;db_handle_count : Short;teb_vector_address : PISC_TEB) : ISC_STATUS;stdcall; external LibName;
  1570. function isc_start_transaction (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;db_handle_count : Short;db_handle : PISC_DB_HANDLE;tpb_length : UShort;tpb_address : PChar) : ISC_STATUS;cdecl; external LibName;
  1571. function isc_sqlcode (status_vector : PISC_STATUS) : ISC_LONG;stdcall; external LibName;
  1572. procedure isc_sql_interprete (sqlcode : Short;buffer : PChar;buffer_length : Short);stdcall; external LibName;
  1573. function isc_transaction_info (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;item_list_buffer_length : Short;item_list_buffer : PChar;result_buffer_length : Short;result_buffer : PChar) : ISC_STATUS;stdcall; external LibName;
  1574. function isc_transact_request (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : UShort;isc_arg5 : PChar;isc_arg6 : UShort;isc_arg7 : PChar;isc_arg8 : UShort;isc_arg9 : PChar) : ISC_STATUS;stdcall; external LibName;
  1575. function isc_vax_integer (buffer : PChar;length : Short) : ISC_LONG;stdcall; external LibName;
  1576. function isc_add_user (status_vector : PISC_STATUS;user_sec_data : PUserSecData) : ISC_STATUS;stdcall; external LibName;
  1577. function isc_delete_user (status_vector : PISC_STATUS;user_sec_data : PUserSecData) : ISC_STATUS;stdcall; external LibName;
  1578. function isc_modify_user (status_vector : PISC_STATUS;user_sec_data : PUserSecData) : ISC_STATUS;stdcall; external LibName;
  1579. function isc_compile_request (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;request_handle : PISC_REQ_HANDLE;isc_arg4 : Short;isc_arg5 : PChar) : ISC_STATUS;stdcall; external LibName;
  1580. function isc_compile_request2 (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;request_handle : PISC_REQ_HANDLE;isc_arg4 : Short;isc_arg5 : PChar) : ISC_STATUS;stdcall; external LibName;
  1581. function isc_ddl (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : Short;isc_arg5 : PChar) : ISC_STATUS;stdcall; external LibName;
  1582. function isc_prepare_transaction (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1583. function isc_receive (status_vector : PISC_STATUS;request_handle : PISC_REQ_HANDLE;isc_arg3,isc_arg4 : Short;isc_arg5 : PVoid;isc_arg6 : Short) : ISC_STATUS;stdcall; external LibName;{$ifndef fpc}function isc_receive2 (status_vector : PISC_STATUS;request_handle : PISC_REQ_HANDLE;isc_arg3,isc_arg4 : Short;isc_arg5 : PVoid;isc_arg6,isc_arg7 : Short;isc_arg8 : Long) : ISC_STATUS;stdcall; external LibName;{$endif}
  1584. function isc_reconnect_transaction (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : Short;isc_arg5 : PChar) : ISC_STATUS;stdcall; external LibName;
  1585. function isc_release_request (status_vector : PISC_STATUS;request_handle : PISC_REQ_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1586. function isc_request_info (status_vector : PISC_STATUS;request_handle : PISC_REQ_HANDLE;isc_arg3 : Short;isc_arg4 : Short;isc_arg5 : PChar;isc_arg6 : Short;isc_arg7 : PChar) : ISC_STATUS;stdcall; external LibName;
  1587. function isc_seek_blob (status_vector : PISC_STATUS;blob_handle : PISC_BLOB_HANDLE;isc_arg3 : Short;isc_arg4 : ISC_LONG;isc_arg5 : PISC_LONG) : ISC_STATUS;stdcall; external LibName;
  1588. function isc_send (status_vector : PISC_STATUS;request_handle : PISC_REQ_HANDLE;isc_arg3,isc_arg4 : Short;isc_arg5 : PVoid;isc_arg6 : Short) : ISC_STATUS;stdcall; external LibName;
  1589. function isc_start_and_send (status_vector : PISC_STATUS;request_handle : PISC_REQ_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4,isc_arg5 : Short;isc_arg6 : PVoid;isc_arg7 : Short) : ISC_STATUS;stdcall; external LibName;
  1590. function isc_start_request (status_vector : PISC_STATUS;request_handle : PISC_REQ_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : Short) : ISC_STATUS;stdcall; external LibName;
  1591. function isc_unwind_request (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;isc_arg3 : Short) : ISC_STATUS;stdcall; external LibName;
  1592. function isc_wait_for_event (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;length : Short;event_buffer,result_buffer : PChar) : ISC_STATUS;stdcall; external LibName;
  1593. function isc_close (status_vector : PISC_STATUS;isc_arg2 : PChar) : ISC_STATUS;stdcall; external LibName;
  1594. function isc_declare (status_vector : PISC_STATUS;isc_arg2,isc_arg3 : PChar) : ISC_STATUS;stdcall; external LibName;
  1595. function isc_describe (status_vector : PISC_STATUS;isc_arg2 : PChar;isc_arg3 : PSQLDA) : ISC_STATUS;stdcall; external LibName;
  1596. function isc_describe_bind (status_vector : PISC_STATUS;isc_arg2 : PChar;isc_arg3 : PSQLDA) : ISC_STATUS;stdcall; external LibName;
  1597. function isc_execute (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;isc_arg3 : PChar;isc_arg4 : PSQLDA) : ISC_STATUS;stdcall; external LibName;
  1598. function isc_execute_immediate (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : PShort;isc_arg5 : PChar) : ISC_STATUS;stdcall; external LibName;
  1599. function isc_fetch (status_vector : PISC_STATUS;isc_arg2 : PChar;isc_arg3 : PSQLDA) : ISC_STATUS;stdcall; external LibName;
  1600. function isc_open (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;isc_arg3 : PChar;isc_arg4 : PSQLDA) : ISC_STATUS;stdcall; external LibName;
  1601. function isc_prepare (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : PChar;isc_arg5 : PShort;isc_arg6 : PChar;isc_arg7 : PSQLDA) : ISC_STATUS;stdcall; external LibName;
  1602. function isc_dsql_execute_m (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;statement_handle : PISC_STMT_HANDLE;isc_arg4 : UShort;isc_arg5 : PChar;isc_arg6 : UShort;isc_arg7 : UShort;isc_arg8 : PChar) : ISC_STATUS;stdcall; external LibName;
  1603. function isc_dsql_execute2_m (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;statement_handle : PISC_STMT_HANDLE;isc_arg4 : UShort;isc_arg5 : PChar;isc_arg6 : UShort;isc_arg7 : UShort;isc_arg8 : PChar;isc_arg9 : UShort;isc_arg10 : PChar;isc_arg11 : UShort;isc_arg12 : UShort;isc_arg13 : PChar) : ISC_STATUS;stdcall; external LibName;
  1604. function isc_dsql_execute_immediate_m (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : UShort;isc_arg5 : PChar;isc_arg6 : UShort;isc_arg7 : UShort;isc_arg8 : PChar;isc_arg9 : UShort;isc_arg10 : UShort;isc_arg11 : PChar) : ISC_STATUS;stdcall; external LibName;
  1605. function isc_dsql_exec_immed3_m (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : UShort;isc_arg5 : PChar;isc_arg6 : UShort;isc_arg7 : UShort;isc_arg8 : PChar;isc_arg9 : UShort;isc_arg10 : UShort;isc_arg11 : PChar;isc_arg12 : UShort;isc_arg13 : PChar;isc_arg14 : UShort;isc_arg15 : UShort;isc_arg16 : PChar) : ISC_STATUS;stdcall; external LibName;
  1606. function isc_dsql_fetch_m (status_vector : PISC_STATUS;statement_handle : PISC_STMT_HANDLE;isc_arg3 : UShort;isc_arg4 : PChar;isc_arg5 : UShort;isc_arg6 : UShort;isc_arg7 : PChar) : ISC_STATUS;stdcall; external LibName;
  1607. function isc_dsql_insert_m (status_vector : PISC_STATUS;statement_handle : PISC_STMT_HANDLE;isc_arg3 : UShort;isc_arg4 : PChar;isc_arg5 : UShort;isc_arg6 : UShort;isc_arg7 : PChar) : ISC_STATUS;stdcall; external LibName;
  1608. function isc_dsql_prepare_m (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;statement_handle : PISC_STMT_HANDLE;isc_arg4 : UShort;isc_arg5 : PChar;isc_arg6 : UShort;isc_arg7 : UShort;isc_arg8 : PChar;isc_arg9 : UShort;isc_arg10 : PChar) : ISC_STATUS;stdcall; external LibName;
  1609. function isc_dsql_release (status_vector : PISC_STATUS;isc_arg2 : PChar) : ISC_STATUS;stdcall; external LibName;
  1610. function isc_embed_dsql_close (status_vector : PISC_STATUS;isc_arg2 : PChar) : ISC_STATUS;stdcall; external LibName;
  1611. function isc_embed_dsql_declare (status_vector : PISC_STATUS;isc_arg2 : PChar;isc_arg3 : PChar) : ISC_STATUS;stdcall; external LibName;
  1612. function isc_embed_dsql_describe (status_vector : PISC_STATUS;isc_arg2 : PChar;isc_arg3 : UShort;isc_arg4 : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1613. function isc_embed_dsql_describe_bind (status_vector : PISC_STATUS;isc_arg2 : PChar;isc_arg3 : UShort;isc_arg4 : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1614. function isc_embed_dsql_execute (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;isc_arg3 : PChar;isc_arg4 : UShort;isc_arg5 : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1615. function isc_embed_dsql_execute2 (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;isc_arg3 : PChar;isc_arg4 : UShort;isc_arg5 : PXSQLDA;isc_arg6 : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1616. function isc_embed_dsql_execute_immed (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : UShort;isc_arg5 : PChar;isc_arg6 : UShort;isc_arg7 : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1617. function isc_embed_dsql_fetch (status_vector : PISC_STATUS;isc_arg2 : PChar;isc_arg3 : UShort;isc_arg4 : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1618. function isc_embed_dsql_open (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;isc_arg3 : PChar;isc_arg4 : UShort;isc_arg5 : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1619. function isc_embed_dsql_open2 (status_vector : PISC_STATUS;tran_handle : PISC_TR_HANDLE;isc_arg3 : PChar;isc_arg4 : UShort;isc_arg5 : PXSQLDA;isc_arg6 : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1620. function isc_embed_dsql_insert (status_vector : PISC_STATUS;isc_arg2 : PChar;isc_arg3 : UShort;isc_arg4 : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1621. function isc_embed_dsql_prepare (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;isc_arg4 : PChar;isc_arg5 : UShort;isc_arg6 : PChar;isc_arg7 : UShort;isc_arg8 : PXSQLDA) : ISC_STATUS;stdcall; external LibName;
  1622. function isc_embed_dsql_release (status_vector : PISC_STATUS;isc_arg2 : PChar) : ISC_STATUS;stdcall; external LibName;
  1623. function BLOB_open (blob_handle : TISC_BLOB_HANDLE;isc_arg2 : PChar;isc_arg3 : int) : PBSTREAM;stdcall; external LibName;
  1624. function BLOB_put (isc_arg1 : char;isc_arg2 : PBSTREAM) : Int;stdcall; external LibName;
  1625. function BLOB_close (isc_arg1 : PBSTREAM) : Int;stdcall; external LibName;
  1626. function BLOB_get (isc_arg1 : PBSTREAM) : Int;stdcall; external LibName;
  1627. function BLOB_display (isc_arg1 : PISC_QUAD;db_handle : TISC_DB_HANDLE;tran_handle : TISC_TR_HANDLE;isc_arg4 : PChar) : Int;stdcall; external LibName;
  1628. function BLOB_dump (isc_arg1 : PISC_QUAD;db_handle : TISC_DB_HANDLE;tran_handle : TISC_TR_HANDLE;isc_arg4 : PChar) : Int;stdcall; external LibName;
  1629. function BLOB_edit (isc_arg1 : PISC_QUAD;db_handle : TISC_DB_HANDLE;tran_handle : TISC_TR_HANDLE;isc_arg4 : PChar) : Int;stdcall; external LibName;
  1630. function BLOB_load (isc_arg1 : PISC_QUAD;db_handle : TISC_DB_HANDLE;tran_handle : TISC_TR_HANDLE;isc_arg4 : PChar) : Int;stdcall; external LibName;
  1631. function BLOB_text_dump (isc_arg1 : PISC_QUAD;db_handle : TISC_DB_HANDLE;tran_handle : TISC_TR_HANDLE;isc_arg4 : PChar) : Int;stdcall; external LibName;
  1632. function BLOB_text_load (isc_arg1 : PISC_QUAD;db_handle : TISC_DB_HANDLE;tran_handle : TISC_TR_HANDLE;isc_arg4 : PChar) : Int;stdcall; external LibName;
  1633. function Bopen (isc_arg1 : PISC_QUAD;db_handle : TISC_DB_HANDLE;tran_handle : TISC_TR_HANDLE;isc_arg4 : PChar) : Int;stdcall; external LibName;
  1634. function isc_ftof (isc_arg1 : PChar;isc_arg2 : UShort;isc_arg3 : PChar;isc_arg4 : UShort) : ISC_LONG;stdcall; external LibName;
  1635. function isc_print_blr (isc_arg1 : PChar;isc_arg2 : TISC_CALLBACK;isc_arg3 : PVoid;isc_arg4 : Short) : ISC_STATUS;stdcall; external LibName;
  1636. procedure isc_set_debug (isc_arg1 : Int);stdcall; external LibName;
  1637. procedure isc_qtoq (isc_arg1 : PISC_QUAD;isc_arg2 : PISC_QUAD);stdcall; external LibName;
  1638. procedure isc_vtof (isc_arg1 : PChar;isc_arg2 : PChar;isc_arg3 : UShort);stdcall; external LibName;
  1639. procedure isc_vtov (isc_arg1 : PChar;isc_arg2 : PChar;isc_arg3 : Short);stdcall; external LibName;
  1640. function isc_version (db_handle : PISC_DB_HANDLE;isc_arg2 : TISC_CALLBACK;isc_arg3 : PVoid) : Int;stdcall; external LibName;
  1641. function isc_attach_service (status_vector : PISC_STATUS;isc_arg2 : UShort;isc_arg3 : PChar;service_handle : PISC_SVC_HANDLE;isc_arg5 : UShort;isc_arg6 : PChar) : ISC_STATUS;stdcall; external LibName;
  1642. function isc_detach_service (status_vector : PISC_STATUS;service_handle : PISC_SVC_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1643. function isc_query_service (status_vector : PISC_STATUS;service_handle : PISC_SVC_HANDLE;isc_arg3 : UShort;isc_arg4 : PChar;isc_arg5 : UShort;isc_arg6 : PChar;isc_arg7 : UShort;isc_arg8 : PChar) : ISC_STATUS;stdcall; external LibName;
  1644. {$ifdef IB_CURSORS}
  1645. function isc_embed_dsql_fetch2 (status_vector : PISC_STATUS;isc_arg2 : PChar;isc_arg3 : UShort;isc_arg4 : PXSQLDA;isc_arg5 : UShort;isc_arg6 : Long) : ISC_STATUS;stdcall; external LibName;
  1646. function isc_dsql_fetch2 (status_vector : PISC_STATUS;stmt_handle : PISC_STMT_HANDLE;dialect : UShort;xsqlda : PXSQLDA;isc_arg5 : UShort;isc_arg6 : Long) : ISC_STATUS;stdcall; external LibName;
  1647. function isc_dsql_fetch2_m (status_vector : PISC_STATUS;statement_handle : PISC_STMT_HANDLE;isc_arg3 : UShort;isc_arg4 : PChar;isc_arg5 : UShort;isc_arg6 : UShort;isc_arg7 : PChar;isc_arg8 : UShort;isc_arg9 : Long) : ISC_STATUS;stdcall; external LibName;
  1648. {$endif}
  1649. {$ifdef IB_Extensions}
  1650. function Bopen2 (isc_arg1 : PISC_QUAD;db_handle : TISC_DB_HANDLE;tran_handle : TISC_TR_HANDLE;isc_arg4 : PChar;isc_arg5 : UShort) : PBSTREAM;stdcall; external LibName;
  1651. function isc_reset_fpe (isc_arg1 : UShort) : ISC_LONG;stdcall; external LibName;
  1652. function isc_compile_map (status_vector : PISC_STATUS;form_handle : PISC_FORM_HANDLE;request_handle : PISC_REQ_HANDLE;isc_arg4 : PShort;isc_arg5 : PChar) : ISC_STATUS;stdcall; external LibName;
  1653. function isc_compile_menu (status_vector : PISC_STATUS;form_handle : PISC_FORM_HANDLE;request_handle : PISC_REQ_HANDLE;isc_arg4 : PShort;isc_arg5 : PChar) : ISC_STATUS;stdcall; external LibName;
  1654. function isc_compile_sub_map (status_vector : PISC_STATUS;win_handle : PISC_WIN_HANDLE;request_handle : PISC_REQ_HANDLE;isc_arg4 : PShort;isc_arg5 : PChar) : ISC_STATUS;stdcall; external LibName;
  1655. function isc_create_window (status_vector : PISC_STATUS;win_handle : PISC_WIN_HANDLE;isc_arg3 : PShort;isc_arg4 : PChar;isc_arg5 : PShort;isc_arg6 : PShort) : ISC_STATUS;stdcall; external LibName;
  1656. function isc_delete_window (status_vector : PISC_STATUS;win_handle : PISC_WIN_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1657. function isc_drive_form (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;win_handle : PISC_WIN_HANDLE;request_handle : PISC_REQ_HANDLE;isc_arg6 : PUChar;isc_arg7 : PUChar) : ISC_STATUS;stdcall; external LibName;
  1658. function isc_drive_menu (status_vector : PISC_STATUS;win_handle : PISC_WIN_HANDLE;request_handle : PISC_REQ_HANDLE;isc_arg4 : PShort;isc_arg5 : PChar;isc_arg6 : PShort;isc_arg7 : PChar;isc_arg8 : PShort;isc_arg9 : PShort;isc_arg10 : PChar;isc_arg11 : PISC_LONG) : ISC_STATUS;stdcall; external LibName;
  1659. function isc_form_delete (status_vector : PISC_STATUS;form_handle : PISC_FORM_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1660. function isc_form_fetch (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;request_handle : PISC_REQ_HANDLE;isc_arg5 : PUChar) : ISC_STATUS;stdcall; external LibName;
  1661. function isc_form_insert (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;request_handle : PISC_REQ_HANDLE;isc_arg5 : PUChar) : ISC_STATUS;stdcall; external LibName;
  1662. function isc_get_entree (status_vector : PISC_STATUS;request_handle : PISC_REQ_HANDLE;isc_arg3 : PShort;isc_arg4 : PChar;isc_arg5 : PISC_LONG;isc_arg6 : PShort) : ISC_STATUS;stdcall; external LibName;
  1663. function isc_initialize_menu (status_vector : PISC_STATUS;request_handle : PISC_REQ_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1664. function isc_menu (status_vector : PISC_STATUS;win_handle : PISC_WIN_HANDLE;request_handle : PISC_REQ_HANDLE;isc_arg4 : PShort;isc_arg5 : PChar) : ISC_STATUS;stdcall; external LibName;
  1665. function isc_load_form (status_vector : PISC_STATUS;db_handle : PISC_DB_HANDLE;tran_handle : PISC_TR_HANDLE;form_handle : PISC_FORM_HANDLE;isc_arg5 : PShort;isc_arg6 : PChar) : ISC_STATUS;stdcall; external LibName;
  1666. function isc_pop_window (status_vector : PISC_STATUS;win_handle : PISC_WIN_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1667. function isc_put_entree (status_vector : PISC_STATUS;request_handle : PISC_REQ_HANDLE;isc_arg3 : PShort;isc_arg4 : PChar;isc_arg5 : PISC_LONG) : ISC_STATUS;stdcall; external LibName;
  1668. function isc_reset_form (status_vector : PISC_STATUS;request_handle : PISC_REQ_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1669. function isc_suspend_window (status_vector : PISC_STATUS;win_handle : PISC_WIN_HANDLE) : ISC_STATUS;stdcall; external LibName;
  1670. {$endif}
  1671. implementation
  1672. function SQLDA_LENGTH(n: Long): Long;
  1673. begin
  1674. SQLDA_LENGTH := sizeof(TSQLDA) + ((n - 1) * sizeof(TSQLVAR));
  1675. end;
  1676. function XSQLDA_LENGTH(n: Long): Long;
  1677. begin
  1678. XSQLDA_LENGTH := SizeOf(TXSQLDA) + ((n - 1) * SizeOf(TXSQLVAR));
  1679. end;
  1680. function getb(p: PBSTREAM): Char;
  1681. begin
  1682. Dec(p^.bstr_cnt);
  1683. if (p^.bstr_cnt >= 0) then
  1684. begin
  1685. getb := Chr(Byte(p^.bstr_ptr^) and 248);
  1686. Inc(p^.bstr_ptr);
  1687. end
  1688. else
  1689. getb := Char(BLOB_get(p));
  1690. end;
  1691. function putb(x: Char; p: PBSTREAM): Int;
  1692. begin
  1693. Dec(p^.bstr_cnt);
  1694. if (x = Chr(Byte('n') - Byte('a'))) or (p^.bstr_cnt = 0) then
  1695. putb := BLOB_put(x, p)
  1696. else
  1697. begin p^.bstr_ptr^ := Char(x);
  1698. putb := Byte(x);
  1699. Inc(p^.bstr_ptr^);
  1700. end;
  1701. end;
  1702. function putbx(x: Char; p: PBSTREAM): Int;
  1703. begin Dec(p^.bstr_cnt);
  1704. if (p^.bstr_cnt = 0) then
  1705. putbx := BLOB_put(x, p)
  1706. else
  1707. begin
  1708. p^.bstr_ptr^ := Char(x);
  1709. Inc(p^.bstr_ptr^);
  1710. putbx := Byte(x);
  1711. end;
  1712. end;
  1713. end.
  1714. {
  1715. $Log$
  1716. Revision 1.3 2002-09-07 15:42:52 peter
  1717. * old logs removed and tabs fixed
  1718. Revision 1.2 2002/05/31 11:54:32 marco
  1719. * Renamefest for 1.0, many 1.1.x spots patched also.
  1720. Revision 1.1 2002/01/29 17:54:50 peter
  1721. * splitted to base and extra
  1722. }