File: gnade.html

package info (click to toggle)
gnade 1.2.0-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,036 kB
  • ctags: 245
  • sloc: ada: 11,642; sh: 1,827; makefile: 591; sql: 422; awk: 29
file content (728 lines) | stat: -rw-r--r-- 9,370 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
<HTML
><HEAD
><TITLE
>GNADE User's Guide</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.54"><LINK
REL="NEXT"
TITLE="Preface"
HREF="ch00.html"></HEAD
><BODY
CLASS="BOOK"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="BOOK"
><A
NAME="GNADE"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="TITLE"
><A
NAME="AEN2"
>GNADE User's Guide</A
></H1
><H2
CLASS="SUBTITLE"
>GNADE, The GNat Ada Database Environment</H2
><H2
CLASS="SUBTITLE"
>Version 1.2.0</H2
><H2
CLASS="SUBTITLE"
>Document Revision $Revision: 1.26 $</H2
><H3
CLASS="AUTHOR"
><A
NAME="AEN9"
>Michael Erdmann</A
></H3
><H3
CLASS="AUTHOR"
><A
NAME="AEN12"
>Jrgen Pfeifer</A
></H3
><H4
CLASS="EDITEDBY"
>Edited by</H4
><H3
CLASS="EDITOR"
>Michael Erdmann</H3
><P
CLASS="COPYRIGHT"
>Copyright &copy; 2001 by <SPAN
CLASS="HOLDER"
>J.Pfeifer, M. Erdmann</SPAN
></P
><DIV
CLASS="LEGALNOTICE"
><P
></P
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><P
>      Permission is granted to copy, distribute and/or modify this document
      under the terms of the GNU Free Documentation License, Version 1.1
      or any later version published by the Free Software Foundation;
      with no Invariant Sections, with the Front-Cover Texts being 
      "The GNat Ada Database Environment".
      A copy of the license is included in the section entitled "GNU
      Free Documentation License".
   </P
></BLOCKQUOTE
><P
></P
></DIV
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="ch00.html"
>Preface</A
></DT
><DT
>I. <A
HREF="part1.html"
>Introduction</A
></DT
><DD
><DL
><DT
>1. <A
HREF="objectives.html"
>Project Objectives</A
></DT
><DT
>2. <A
HREF="license.html"
>Software License</A
></DT
><DT
>3. <A
HREF="trademarks.html"
>Trademarks</A
></DT
><DT
>4. <A
HREF="platfforms.html"
>Supported Databases and OS platforms</A
></DT
><DT
>5. <A
HREF="getstarted.html"
>Getting started</A
></DT
><DD
><DL
><DT
><A
HREF="getstarted.html#AEN106"
>Installation on Unix like systems</A
></DT
><DT
><A
HREF="x137.htm"
>Installation on Windows NT</A
></DT
></DL
></DD
><DT
>6. <A
HREF="yourdb.html"
>Using the release with your database</A
></DT
><DD
><DL
><DT
><A
HREF="yourdb.html#AEN155"
>If your data base is not supported</A
></DT
><DT
><A
HREF="x173.htm"
>Installation of the ODBC Interface</A
></DT
><DT
><A
HREF="x180.htm"
>Prepared Example Programs</A
></DT
></DL
></DD
><DT
>7. <A
HREF="gnadeparts.html"
>Contents of the GNADE distribution</A
></DT
><DT
>8. <A
HREF="contact.html"
>Contact</A
></DT
><DT
>9. <A
HREF="authors.html"
>Authors</A
></DT
></DL
></DD
><DT
>II. <A
HREF="esql.html"
>GNU Embedded SQL Translator for Ada 95</A
></DT
><DD
><DL
><DT
>10. <A
HREF="esqlintro.html"
>Introduction to Embedded SQL</A
></DT
><DT
>11. <A
HREF="esqlsyntax.html"
>Embedded SQL Syntax Specification</A
></DT
><DD
><DL
><DT
><A
HREF="esqlsyntax.html#AEN252"
>The GNU Ada 95 Embedded SQL</A
></DT
><DT
><A
HREF="x255.htm"
>Embedded SQL statement</A
></DT
><DT
><A
HREF="x264.htm"
>SQL Query and FETCH clause</A
></DT
><DT
><A
HREF="x271.htm"
>Embedded SQL declare section</A
></DT
><DT
><A
HREF="x281.htm"
>Embedded Exception Declaration</A
></DT
><DT
><A
HREF="x303.htm"
>Handling of return codes</A
></DT
><DT
><A
HREF="x308.htm"
>SQL Communication Area</A
></DT
><DT
><A
HREF="x320.htm"
>Connection Handling</A
></DT
><DT
><A
HREF="x331.htm"
>Cursor Handling</A
></DT
><DT
><A
HREF="x342.htm"
>Mixing ODBC and embedded SQLcode</A
></DT
><DT
><A
HREF="x350.htm"
>Dynamic SQL</A
></DT
><DT
><A
HREF="x364.htm"
>GNADE Specific Datatypes</A
></DT
></DL
></DD
><DT
>12. <A
HREF="esqltrans.html"
>The ESQL Translator</A
></DT
><DD
><DL
><DT
><A
HREF="esqltrans.html#AEN376"
>Compilation Process</A
></DT
><DT
><A
HREF="x385.htm"
>Invocation of the GNU ESQL Translator (gesql)</A
></DT
></DL
></DD
></DL
></DD
><DT
>III. <A
HREF="odbc.html"
>ODBC bindings for Ada 95</A
></DT
><DD
><DL
><DT
>13. <A
HREF="odbintro.html"
>Introduction to ODBC</A
></DT
><DT
>14. <A
HREF="odbcuse.html"
>Using the Ada 95 ODBC Bindings</A
></DT
><DD
><DL
><DT
><A
HREF="odbcuse.html#AEN452"
>General remarks</A
></DT
><DT
><A
HREF="x456.htm"
>A minimal odbc example</A
></DT
><DT
><A
HREF="x487.htm"
>Implemented ODBC methods</A
></DT
></DL
></DD
><DT
>15. <A
HREF="odbc_ch02.html"
>Building ODBC based programs</A
></DT
><DT
>16. <A
HREF="adaodbc.html"
>Ada95 aspects of the ODBC binding</A
></DT
></DL
></DD
><DT
>IV. <A
HREF="bindings.html"
>Native Bindings</A
></DT
><DD
><DL
><DT
>17. <A
HREF="bindingsintro.html"
>Introduction to native bindings</A
></DT
><DT
>18. <A
HREF="mysql.html"
>MySQL bindings</A
></DT
><DD
><DL
><DT
><A
HREF="mysql.html#AEN530"
>The MYSQL API</A
></DT
><DT
><A
HREF="x555.htm"
>Building programs with MySQL</A
></DT
></DL
></DD
><DT
>19. <A
HREF="postgres.html"
>Postgres bindings</A
></DT
></DL
></DD
><DT
>A. <A
HREF="a562.htm"
>Frequently asked questions</A
></DT
><DD
><DL
><DT
><A
HREF="a562.htm#AEN565"
>Q: How to handle strings in where clauses</A
></DT
><DT
><A
HREF="x573.htm"
>Q: How to handle connection failures</A
></DT
></DL
></DD
><DT
>B. <A
HREF="a580.htm"
>The GNU.DB Packages</A
></DT
><DD
><DL
><DT
><A
HREF="a580.htm#AEN582"
>GNU.DB.ESQL_Support</A
></DT
><DD
><DL
><DT
><A
HREF="a580.htm#AEN585"
>String related type conversion</A
></DT
><DT
><A
HREF="a580.htm#AEN589"
>SQL Communication Area</A
></DT
><DT
><A
HREF="a580.htm#AEN596"
>Exceptions</A
></DT
></DL
></DD
><DT
><A
HREF="x602.htm"
>ODBC related packages</A
></DT
></DL
></DD
><DT
>C. <A
HREF="a606.htm"
>Porting legacy code</A
></DT
><DD
><DL
><DT
><A
HREF="a606.htm#AEN609"
>Migrating from Oracle to GNADE</A
></DT
><DD
><DL
><DT
><A
HREF="a606.htm#AEN612"
>Host variables</A
></DT
><DT
><A
HREF="a606.htm#AEN615"
>Query Results</A
></DT
><DT
><A
HREF="a606.htm#AEN618"
>Others</A
></DT
></DL
></DD
></DL
></DD
><DT
>D. <A
HREF="a622.htm"
>GNU Free Documentation License</A
></DT
><DD
><DL
><DT
>0. <A
HREF="a622.htm#AEN627"
>PREAMBLE</A
></DT
><DT
>1. <A
HREF="x632.htm"
>APPLICABILITY AND DEFINITIONS</A
></DT
><DT
>2. <A
HREF="x642.htm"
>VERBATIM COPYING</A
></DT
><DT
>3. <A
HREF="x646.htm"
>COPYING IN QUANTITY</A
></DT
><DT
>4. <A
HREF="x652.htm"
>MODIFICATIONS</A
></DT
><DT
>5. <A
HREF="x688.htm"
>COMBINING DOCUMENTS</A
></DT
><DT
>6. <A
HREF="x693.htm"
>COLLECTIONS OF DOCUMENTS</A
></DT
><DT
>7. <A
HREF="x697.htm"
>AGGREGATION WITH INDEPENDENT WORKS</A
></DT
><DT
>8. <A
HREF="x701.htm"
>TRANSLATION</A
></DT
><DT
>9. <A
HREF="x704.htm"
>TERMINATION</A
></DT
><DT
>10. <A
HREF="x707.htm"
>FUTURE REVISIONS OF THIS LICENSE</A
></DT
></DL
></DD
><DT
>E. <A
HREF="a712.htm"
>GNU Public License (GPL) Version 2</A
></DT
></DL
></DIV
><DIV
CLASS="LOT"
><DL
CLASS="LOT"
><DT
><B
>List of Tables</B
></DT
><DT
>4-1. <A
HREF="platfforms.html#AEN70"
>Supported Platforms</A
></DT
><DT
>7-1. <A
HREF="gnadeparts.html#AEN205"
>Production results of the GNADE Project</A
></DT
><DT
>11-1. <A
HREF="x281.htm#AEN287"
>Exception Actions</A
></DT
><DT
>12-1. <A
HREF="x385.htm#AEN402"
>Options</A
></DT
></DL
></DIV
><DIV
CLASS="LOT"
><DL
CLASS="LOT"
><DT
><B
>List of Examples</B
></DT
><DT
>6-1. <A
HREF="x173.htm#AEN177"
>/etc/odbc.ini entry for the test data base</A
></DT
><DT
>10-1. <A
HREF="esqlintro.html#AEN245"
>Example for Embedded SQL</A
></DT
><DT
>11-1. <A
HREF="x255.htm#AEN259"
>Embedded SQL Statements</A
></DT
><DT
>11-2. <A
HREF="x308.htm#AEN312"
>Local SQLCA in procedures</A
></DT
><DT
>11-3. <A
HREF="x320.htm#AEN324"
>Using DB connections as procedure arguments</A
></DT
><DT
>11-4. <A
HREF="x331.htm#AEN336"
>Local Cursors</A
></DT
><DT
>11-5. <A
HREF="x342.htm#AEN347"
>Accessing ODBC handles</A
></DT
><DT
>11-6. <A
HREF="x350.htm#AEN361"
>Using dynamic SQL</A
></DT
><DT
>11-7. <A
HREF="x364.htm#AEN371"
>Using VARCHAR</A
></DT
><DT
>14-1. <A
HREF="x456.htm#AEN459"
>Preparing data of the ODBC driver</A
></DT
><DT
>14-2. <A
HREF="x456.htm#AEN463"
>Connecting to the data base via ODBC</A
></DT
><DT
>14-3. <A
HREF="x456.htm#AEN469"
>Preparing the Query via ODBC</A
></DT
><DT
>14-4. <A
HREF="x456.htm#AEN472"
>Using host variable with ODBC</A
></DT
><DT
>14-5. <A
HREF="x456.htm#AEN477"
>Creating the result set for a query</A
></DT
><DT
>14-6. <A
HREF="x456.htm#AEN481"
>Fetching data of the result set via ODBC</A
></DT
><DT
>18-1. <A
HREF="mysql.html#AEN536"
>MySQL native binding - Connecting to the database.</A
></DT
><DT
>18-2. <A
HREF="mysql.html#AEN541"
>MySQL native binding - Executing a query</A
></DT
><DT
>18-3. <A
HREF="mysql.html#AEN546"
>MySQL native binding - Accessing the result set</A
></DT
><DT
>18-4. <A
HREF="mysql.html#AEN552"
>MySQL native binding - Dropping the query</A
></DT
><DT
>A-1. <A
HREF="a562.htm#AEN569"
>Using a string in the WHERE clause</A
></DT
><DT
>A-2. <A
HREF="x573.htm#AEN576"
>Intercpetion connection errors</A
></DT
></DL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="ch00.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Preface</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>