Debian Codegraph @

whelp/AQL/errorcodes.shtml

raw
1 <HTML>
2
3 <HEAD>
4 <TITLE>AQL - Error codes</TITLE>
5 <LINK REL="stylesheet" TYPE="text/css" HREF="./aql.css" TITLE="Style sheet for AQL docs">
6 </HEAD>
7 <BODY>
8
9
10 <H2>AQL - Error codes</H2>
11
12 When AQL processes a query, a number of checks are performed at various stages of the processing.
13 Every type of error that can occur during query processing has been assigned a number code
14 that can be looked up in the table below.
15 <P>
16 The errors have been arranged into various categories and colour-coded according to the <A HREF="#COLORKEY">key at the bottom of this page</A>.
17
18 <P>An asterisk (*) in a quoted error message stands for some value filled in according to the actual query use.</P>
19
20 <TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=20>
21
22 <TR BGCOLOR=khaki>
23 <TH>Number Code</TH>
24 <TH>Error message</TH>
25 <TH>Explanation and Examples</TH>
26 </TR>
27
28
29 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
30
31 <TR>
32 <TD BGCOLOR=red ALIGN=CENTER VALIGN=MIDDLE><B>600</B></TD>
33 <TD VALIGN=TOP>Code: Undefined Error</TD>
34 <TD VALIGN=TOP>The code has encountered a fatal error executing the current operation and has
35 aborted. The source of the error could not be determined.
36 </TD>
37 </TR>
38
39 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
40
41 <TR>
42 <TD BGCOLOR=red ALIGN=CENTER VALIGN=MIDDLE><B>610</B></TD>
43 <TD VALIGN=TOP>Code: Logic Error</TD>
44 <TD VALIGN=TOP>The code has encountered a condition that should not be logically possible
45 and has aborted the current operation.
46 </TD>
47 </TR>
48
49 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
50
51 <TR>
52 <TD BGCOLOR=red ALIGN=CENTER VALIGN=MIDDLE><B>620</B></TD>
53 <TD VALIGN=TOP>Code: Tree Error</TD>
54 <TD VALIGN=TOP>The code has detected an error in the parse tree it has constructed
55 and has aborted the current operation.
56 </TD>
57 </TR>
58
59 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
60
61 <TR>
62 <TD BGCOLOR=red ALIGN=CENTER VALIGN=MIDDLE><B>630</B></TD>
63 <TD VALIGN=TOP>Code: Called Function Error</TD>
64 <TD VALIGN=TOP>The code has received an unexpected error from a function outside of the AQL
65 package and has aborted the current operation.
66 </TD>
67 </TR>
68
69 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
70
71 <TR>
72 <TD BGCOLOR=lightyellow ALIGN=CENTER VALIGN=MIDDLE><B>700</B></TD>
73 <TD VALIGN=TOP>Syntax error</TD>
74 <TD VALIGN=TOP>The query doesn't satisfy the syntax as defined by the <A HREF="syntax.shtml">parsing grammar</A>.
75 Other syntax errors that slip through the net of first-pass parsing will be reported
76 using more specific error codes.
77 </TD>
78 </TR>
79
80 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
81
82 <TR>
83 <TD BGCOLOR=lightyellow ALIGN=CENTER VALIGN=MIDDLE><B>701</B></TD>
84 <TD VALIGN=TOP>Syntax error : invalid character</TD>
85 <TD VALIGN=TOP>The query contains a character that isn't defined anywhere in the <A HREF="syntax.shtml">parsing grammar</A>.
86 </TD>
87 </TR>
88
89 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
90
91 <TR>
92 <TD BGCOLOR=lightyellow ALIGN=CENTER VALIGN=MIDDLE><B>702</B></TD>
93 <TD VALIGN=TOP>Syntax error : Bad time/data literal</TD>
94 <TD VALIGN=TOP>The string following the <TT>`</TT> isn't a valid date,
95 see <A HREF="syntax.shtml#DATE_LITERAL">date syntax</A> for details..
96 </TD>
97 </TR>
98
99 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
100
101 <TR>
102 <TD BGCOLOR=lightyellow ALIGN=CENTER VALIGN=MIDDLE><B>703</B></TD>
103 <TD VALIGN=TOP>Syntax error: unrecognized Method name '*'</TD>
104 <TD VALIGN=TOP>caused by a query like
105 <DL><DD><CODE>select a, a.<I>function</I> from a in class C1</CODE></DL>
106 The Method <I>function</I> is not a recognized method.
107 See the language documentation for a list of <A HREF="overview.shtml#LOC_METHOD">valid Method names</A>.
108 </TD>
109 </TR>
110
111 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
112
113 <TR>
114 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>990</B></TD>
115 <TD VALIGN=TOP>scalar variable * undefined</TD>
116 <TD VALIGN=TOP>caused by a query like
117 <DL><DD><CODE>select a from a in class C1 where a->Field1 == <I>$x</I></CODE></DL>
118 The scalar variable <TT>$x</TT> has to be defined in the previous query or
119 in the environment context.
120 </TD>
121 </TR>
122
123 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
124
125 <TR>
126 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>991</B></TD>
127 <TD VALIGN=TOP>table variable * undefined</TD>
128 <TD VALIGN=TOP>caused by a query like
129 <DL><DD><CODE>select a:1 from a in @t</CODE></DL>
130 The table-variable <TT>@t</TT> has to be defined in the previous query or
131 in the environment context.
132 </TD>
133 </TR>
134
135 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
136
137 <TR>
138 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>992</B></TD>
139 <TD VALIGN=TOP>iterator variable * undeclared</TD>
140 <TD VALIGN=TOP>caused by a query like
141 <DL><DD><CODE>select a, b from a in class author</CODE></DL>
142 The locator-variable <TT>b</TT> has to be declared in the <U>from-clause</U>
143 of the same query.
144 </TD>
145 </TR>
146
147 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
148
149 <TR>
150 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>993</B></TD>
151 <TD VALIGN=TOP>no unnamed iterator declaration</TD>
152 <TD VALIGN=TOP>caused by a query like
153 <DL><DD><CODE>select p from p in class person where exists <I>->born</I></CODE></DL>
154 The argument for the exists expression uses the
155 <A HREF="overview.shtml#DEF_ITERATOR">default iterator</A>, which is used
156 for unnamed declarations.
157 Use either <BR>
158 <CODE>select p from p in class person where exists <I>p</I>->born</CODE>
159 <BR>or<BR>
160 <CODE>select <I>all</I> class person where exists ->born</CODE>
161 </TD>
162 </TR>
163
164 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
165
166 <TR>
167 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>961</B></TD>
168 <TD VALIGN=TOP>Malformed FROM in SelectFromWhere</TD>
169 <TD VALIGN=TOP>caused by a query like
170 <DL><DD><CODE>select s from sequence</CODE></DL>
171 </TD>
172 </TR>
173
174 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
175
176
177 <TR>
178 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>988</B></TD>
179 <TD VALIGN=TOP>only one declaration allowed for default iterator</TD>
180 <TD VALIGN=TOP>caused by a query like
181 <DL><DD><CODE>select all from a,b</CODE></DL>
182 The default locator that is initiated by <TT>select all</TT>
183 can only be based upon one declaration.
184 It cannot be redeclared in the same table expression.
185 </TD>
186 </TR>
187
188 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
189
190
191 <TR>
192 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>989</B></TD>
193 <TD VALIGN=TOP>multiple declaration of variable * in same scope</TD>
194 <TD VALIGN=TOP>caused by a query like
195 <DL><DD><CODE>select a from a in class C1, a in class C2</CODE></DL>
196 The <U>from-clause</U> defines the variable a to be derived from class C1, but then
197 you can't define the same variable based on a different class again.
198 </TD>
199 </TR>
200
201 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
202
203 <TR>
204 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>958</B></TD>
205 <TD VALIGN=TOP>invalid declaration</TD>
206 <TD VALIGN=TOP>caused by a query like
207 <DL><DD><CODE>$x:= @t:2</CODE></DL>
208 where a table-variable is referenced without a proper declaration.<BR>
209 This query makes no sense because <TT>$x</TT> is a scalar variable
210 (i.e. can only have one value) and <TT>@t:2</TT> is a column of a table
211 (i.e. a list of values).
212 </TD>
213 </TR>
214
215 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
216
217 <TR>
218 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>959</B></TD>
219 <TD VALIGN=TOP>invalid outside declaration</TD>
220 <TD VALIGN=TOP>caused by a query like
221 <DL><DD><CODE>$x := yeardiff(p->Title, now)</CODE></DL>
222 where <TT>p->Title</TT> refers to a declaration outside the function that doesn't exist.
223 </TD>
224 </TR>
225
226
227 <TR><TD COLSPAN=3><A NAME="ERRNO930"><HR NOSHADE></A></TD></TR>
228
229 <TR>
230 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>930</B></TD>
231 <TD VALIGN=TOP>Invalid column-selection on *:*</TD>
232 <TD VALIGN=TOP>caused by a query like
233 <DL><DD><CODE>select a:&lt;columnNo&gt; from a in class movie</CODE></DL>
234 The select-field is a row-variable <TT>a</TT>, but it is illogical to
235 extract a column (specified by <I>number</I>) from a class-based from-clause
236 <BR>&nbsp;--or--
237 <DL><DD><CODE>select a:&lt;columnNo&gt; from a in @tb:1</CODE></DL>
238 The variable <B>a</B> is already declared to iterate over columns in <B>@tb</B>,
239 so another column selection in a single-value iterator makes no sense.
240
241 </TD>
242 </TR>
243
244 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
245
246 <TR>
247 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>931</B></TD>
248 <TD VALIGN=TOP>Invalid column-selection on *:*</TD>
249 <TD VALIGN=TOP>This error is a slight variation on <A HREF="#ERRNO930">error 930</A>, but for invalid
250 column selection by name. (Error 930 deals with selection by column-number).
251 </TD>
252 </TR>
253
254 <TR><TD COLSPAN=3><A NAME="ERRNO932"><HR NOSHADE></A></TD></TR>
255
256 <TR>
257 <TD ROWSPAN=2 BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>932</B></TD>
258 <TD ROWSPAN=2 VALIGN=TOP>variable * is row based and must specify the column that is to be extracted from the iterating rows</TD>
259 <TD VALIGN=TOP>caused by a query like
260 <DL><DD><CODE>select a from a in @tb</CODE></DL>
261 The from-clause defines the variable <B>a</B> as a row-variable on the table-variable <B>tb</B>.
262 The select-clause states that <B>a</B> should be output to the results-table, but
263 <B>a</B> is an entire column. We need to refer to the exact column in the row <B>a</B>
264 in order to extract just a single value for the results-table.<BR>
265 The query <CODE>select a:1 from a in @tb</CODE> is OK, and it will pull out the first (i.e. leftmost)
266 column from the table.
267 </TD>
268 </TR>
269 <TR>
270 <TD BGCOLOR=lightcoral VALIGN=TOP>
271 However, the parser could allow the original query above, in the case that <B>@tb</B> has only one column anyway.
272 This is currently not implemented.
273 </TD>
274 </TR>
275
276
277 <TR><TD COLSPAN=3><A NAME="ERRNO933"><HR NOSHADE></A></TD></TR>
278
279 <TR>
280 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>933</B></TD>
281 <TD VALIGN=TOP>Cannot dereference a row-based variable directly</TD>
282 <TD VALIGN=TOP>caused by a query like
283 <DL><DD><CODE>select a->tagname from a in @tb</CODE></DL>
284 This error is a slight variation on <A HREF="#ERRNO932">error 932</A>.
285 We cannot dereference <B>a</B>, as it stands for an entire row from table <B>@tb</B>.
286 The query <CODE>select a:1->tagname from a in @tb</CODE> would be correct in the case that the
287 object values in column 1 in table <B>@tb</B> should be followed up to tag <B>tagname</B>.
288 </TD>
289 </TR>
290
291 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
292
293 <TR>
294 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>920</B></TD>
295 <TD VALIGN=TOP>table &lt;union/diff/intersect&gt; operator - column number mismatch</TD>
296 <TD VALIGN=TOP>caused by a query like
297 <DL><DD><CODE>select a->Field1, a->Field2 from a in class C1<BR>
298 union<BR>
299 select b->Field1 from b in class C2</CODE></DL>
300 The table operators <TT>union</TT>, <TT>diff</TT> (aka <TT>except</TT>)
301 and <TT>intersect</TT> can only combine two table that have the same number of columns,
302 whereas the above example yields a two-column table with the query on class <TT>C1</TT> and a one-column table
303 with the query on class <TT>C2</TT>.
304 </TD>
305 </TR>
306
307 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
308
309 <TR>
310 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>921</B></TD>
311 <TD VALIGN=TOP>table-argument for tableFunc expression must generate ONLY 1 column</TD>
312 <TD VALIGN=TOP>caused by a query like
313 <DL><DD><CODE>$x := count(select a->Field1, a->Field2 from a in class C1)</CODE></DL>
314 The table-functions (count, sum, avg, min, max, first, last) can only act on tables that have one column.
315 The inner select-query should be restricted to one select field or the column specified by name or number.
316 <DL><DD><CODE>$x := count(select a->Field1 from a in class C1)</CODE></DL>
317 <DL><DD><CODE>$x := count(select a->Field1, a->Field2 from a in class C1):1</CODE></DL>
318 </TD>
319 </TR>
320
321 <TR><TD COLSPAN=3><A NAME="ERRNO922"><HR NOSHADE></A></TD></TR>
322
323 <TR>
324 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>922</B></TD>
325 <TD VALIGN=TOP>field number * out of range</TD>
326 <TD VALIGN=TOP>caused by a query like
327 <DL><DD><CODE>select a, b from a in ..., b in ... order by :3</CODE></DL>
328 The table returns two result column, but the sort-clause is trying to refer to a third
329 column in the result table on which to sort by. The number of that field in invalid
330 for the given select-clause.<BR>
331 This error may be reported for table-fields with the <TT>order</TT> keyword,
332 fields in row-variables and when a table-function specifies a field-number as in
333 <DL><DD><CODE>$x := max(select a, b from ... ):4</CODE></DL>
334 </TD>
335 </TR>
336
337 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
338
339 <TR>
340 <TD BGCOLOR=lightblue ALIGN=CENTER VALIGN=MIDDLE><B>923</B></TD>
341 <TD VALIGN=TOP>field name * not in table</TD>
342 <TD VALIGN=TOP>caused by a query like
343 <DL><DD><CODE>select a from a in ... order by :b</CODE></DL>
344 Similar to <A HREF="#ERRNO922">error 922</A>, but traps <U>named</U>
345 references to non-existing table-fields.
346 <BR>
347 The sort field 'b' isn't recognised in the result table, because the
348 select-clause only defines the result to have a table with one column called 'a'.
349 <BR>
350 This error may be reported for table-field names used with the <TT>order</TT> keyword,
351 field-names in row-variables and when a table-function specifies a non-existing field-name as in
352 <DL><DD><CODE>$x := max(select a from ... ):b</CODE></DL>
353 </TD>
354 </TR>
355
356 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
357
358 <TR>
359 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>883</B></TD>
360 <TD VALIGN=TOP>The like operator can only be used on Text types</TD>
361 <TD VALIGN=TOP>The operator <TT>~</TT> or the keyword <TT>like</TT>
362 can only be used to compare Text values. One of the expressions either side
363 of the operator does not evaluate to a Text value-type.
364 <BR>
365 NOTE: when <I>Object</I>-values are compared to Text, so <TT>~</TT> <U>can</U> be used.
366 </TD>
367 </TR>
368
369 <TR><TD COLSPAN=3><A NAME="ERRNO884"><HR NOSHADE></A></TD></TR>
370
371 <TR>
372 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>884</B></TD>
373 <TD VALIGN=TOP>illegal value types for comparison operator</TD>
374 <TD VALIGN=TOP>The comparison operator used is not supported (or makes no sense) for the value types involved in
375 the expression
376 </TD>
377 </TR>
378
379 <TR><TD COLSPAN=3><A NAME="ERRNO885"><HR NOSHADE></A></TD></TR>
380
381 <TR>
382 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><BR><B>885</B><BR><BR></TD>
383 <TD COLSPAN=2 VALIGN=TOP>Comparison involving boolean values only allows = and != operators</TD>
384 </TD>
385 </TR>
386
387 <TR><TD COLSPAN=3><A NAME="ERRNO886"><HR NOSHADE></A></TD></TR>
388
389 <TR>
390 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><BR><B>886</B><BR><BR></TD>
391 <TD COLSPAN=2 VALIGN=TOP>Comparison of two <I>Object</I> values only allows = and != operators</TD>
392 </TD>
393 </TR>
394
395 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
396
397 <TR>
398 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>887</B></TD>
399 <TD VALIGN=TOP>Only min() or max() function can operate over DateType values!</TD>
400 <TD VALIGN=TOP>caused by a query like
401 <DL><DD><CODE>$y := avg (select p->Publish_Date from a in class Author, p in a->Paper)</CODE></DL>
402 The inner query produces a list of dates on which authors have published their papers.
403 <BR>
404 The table-function <TT>avg</TT> is not defined for values of type <I>DateType</I>,
405 only <TT>min</TT> and <TT>max</TT> can be used on <I>DateType</I> tables.
406
407 </TD>
408 </TR>
409
410 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
411
412 <TR>
413 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>888</B></TD>
414 <TD VALIGN=TOP>Only min() or max() function can operate over Text values!</TD>
415 <TD VALIGN=TOP>caused by a query like
416 <DL><DD><CODE>$y := avg (select a->Full_name from a in class Author)</CODE></DL>
417 The inner query produces a list of names of all authors.
418 <BR>
419 The table-function <TT>avg</TT> is not defined for values of type <I>Text</I>,
420 only <TT>min</TT> and <TT>max</TT> can be used on <I>Text</I> tables.
421
422 </TD>
423 </TR>
424
425 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
426
427 <TR>
428 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>889</B></TD>
429 <TD VALIGN=TOP>Table selection returns wrong type of value.</TD>
430 <TD VALIGN=TOP>caused by a query like
431 <DL><DD><CODE>$x := sum (select a->Name from a in class Author)</CODE></DL>
432 The inner query lists the names of all authors. These names would naturally be string values.
433 <BR>
434 Functions <TT>min</TT>, <TT>max</TT> only work over columns of <I>Int</I>, <I>Float</I> or <I>DateType</I> values.
435 The functions <TT>sum</TT>, <TT>avg</TT> work over numeric values (Int or Float) only.
436 </TD>
437 </TR>
438
439 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
440
441 <TR>
442 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>890</B></TD>
443 <TD VALIGN=TOP>operand of &lt;<I>dateDiffFunc</I>&gt;() is not a DateType</TD>
444 <TD VALIGN=TOP>caused by a query like
445 <DL><DD><CODE>select a, Age::yeardiff(a->Name, now) from a in class Author</CODE></DL>
446
447 This is the wrong query, if the user wanted the authors age to be calculated
448 as the difference in years between the current date and the date of his/her birth.
449 <BR>
450 The field <TT>a->Name</TT> will probably return a string value, and therefore the
451 yeardiff function will fail.
452 </TD>
453 </TR>
454
455 <TR><TD COLSPAN=3><A NAME="ERRNO895"><HR NOSHADE></A></TD></TR>
456
457 <TR>
458 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>895</B></TD>
459 <TD VALIGN=TOP>Arithmetic exception - division by zero</TD>
460 <TD VALIGN=TOP>caused by a division of integer or float value zero.
461 (Any other value-type in a division by zero will cause error No <A HREF="#ERRNO896">896</A> first.)
462 </TD>
463 </TR>
464
465 <TR><TD COLSPAN=3><A NAME="ERRNO896"><HR NOSHADE></A></TD></TR>
466
467 <TR>
468 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>896</B></TD>
469 <TD VALIGN=TOP>invalid expression types (*).(*) for arithmetic operator</TD>
470 <TD VALIGN=TOP>caused by a query like
471 <DL><DD><CODE>select a, (a->Born + 10.0) from a in class Author</CODE></DL>
472 when the second select-field expression is evaluated, <TT>a->Born</TT> assumes
473 <I>DateType</I> values, whereas 10.0 is a <I>Float</I>.
474 <P>
475 The arithmetic operators +, -, *, / are only defined for numeric data-types (Int, Float).
476 </TD>
477 </TR>
478
479 <TR><TD COLSPAN=3><A NAME="ERRNO897"><HR NOSHADE></A></TD></TR>
480
481 <TR>
482 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>897</B></TD>
483 <TD VALIGN=TOP>invalid expression types (*).(*) for modulo operator (integer only)</TD>
484 <TD VALIGN=TOP>The modulo operator only works on integer values. If either of the expressions evaluate
485 to ny other type, you will get this error.
486 </TD>
487 </TR>
488
489 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
490
491 <TR>
492 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>898</B></TD>
493 <TD VALIGN=TOP>incorrect expression type (*) for unary MINUS operator</TD>
494 <TD VALIGN=TOP>caused by a query like
495 <DL><DD><CODE>select a from a in class Author where <I>-a = "ddd"</I></CODE></DL>
496 The variable <TT>a</TT> will assume <I>Object</I> values during evaluation.
497 In an arithmetic expression the minus operator '-' can only be used for Int and Float values,
498 but naturally not for DateType, Text, Object-values or others.
499 </TD>
500 </TR>
501
502 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
503
504 <TR>
505 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>899</B></TD>
506 <TD VALIGN=TOP>incorrect expression type (*) for abs() ExprFunc</TD>
507 <TD VALIGN=TOP>caused by a query like
508 <DL><DD><CODE>select a, abs(a->Paper) from a in class Author</I></CODE></DL>
509 The locator <TT>a->Paper</TT> will assume <I>Object</I> values during evaluation.
510 The expression function <TT>abs()</TT> can only be used for Int and Float values,
511 but naturally not for DateType, Text, Object-values or others.
512 </TD>
513 </TR>
514
515 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
516
517 <TR>
518 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>860</B></TD>
519 <TD VALIGN=TOP>invalid valuetype of operand for method 'name'</TD>
520 <TD VALIGN=TOP>The method 'name' can only be used on object or tag-values.
521 It converts the internal key of the object or tag into
522 a Text-string. <BR>
523 The use of this method on a variable of any other valuetype
524 will raise this error.<BR>
525 Note: In table-results that are rendered into text-format
526 usually show object and text-values in the same way - as quoted strings.
527 </TD>
528 </TR>
529
530 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
531
532 <TR>
533 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>861</B></TD>
534 <TD VALIGN=TOP>invalid valuetype of operand for method 'class'</TD>
535 <TD VALIGN=TOP>The method 'class' can only be used on object-values.
536 It will return the Text-string for the class-name
537 of an object value. <BR>
538 The use of this method on a variable of any other valuetype
539 will raise this error.
540 </TD>
541 </TR>
542
543 <TR><TD COLSPAN=3><A NAME="ERRNO862"><HR NOSHADE></A></TD></TR>
544
545 <TR>
546 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>862</B></TD>
547 <TD VALIGN=TOP>invalid valuetype of operand for method 'length'</TD>
548 <TD VALIGN=TOP>The 'length' method return an integer containing the length
549 of an array or Text-string. The operand to this method
550 must be either a Text-value or an object value.
551 Error <A HREF="#ERRNO863">863</A> will be raised if an
552 object value does not belong to an A-class, which stores arrays
553 (as opposed to B-classes which store objects in B-tree format).
554 <BR>
555 The use of this method on an iterator of any other valuetype will
556 cause this error.
557 </TD>
558 </TR>
559
560 <TR><TD COLSPAN=3><A NAME="ERRNO863"><HR NOSHADE></A></TD></TR>
561
562 <TR>
563 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>863</B></TD>
564 <TD VALIGN=TOP>invalid valuetype of operand for method 'length'</TD>
565 <TD VALIGN=TOP>This error is raised if the operand to the 'length' method
566 is an object not belonging to an A-class.
567 <BR>
568 See Error <A HREF="#ERRNO862">862</A>.
569 </TD>
570 </TR>
571
572 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
573
574 <TR>
575 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>864</B></TD>
576 <TD VALIGN=TOP><TABLE><TR><TD ALIGN=RIGHT>
577 invalid valuetype of operand for method 'create_time'</TD></TR>
578 <TR><TD ALIGN=RIGHT>'create_session'</TD></TR>
579 <TR><TD ALIGN=RIGHT>'update_time'</TD></TR>
580 <TR><TD ALIGN=RIGHT>'update_session'</TD></TR></TABLE>
581 </TD>
582 <TD VALIGN=TOP>These timestamps methods can only be used on object-values.<BR>
583 They return either a DateType-value or an object-value of a UserSession
584 object relating to the session when that object was created or updated.
585 <BR>
586 The use of this method on a variable of any other valuetype
587 will raise this error.
588 </TD>
589 </TR>
590
591 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
592
593 <TR>
594 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>865</B></TD>
595 <TD VALIGN=TOP><TABLE><TR><TD ALIGN=RIGHT>
596 invalid valuetype of operand for method 'node_time'</TD></TR>
597 <TR><TD ALIGN=RIGHT>'node_session'</TD></TR></TABLE>
598 </TD>
599 <TD VALIGN=TOP>These timestamps methods operate on a piece of data inside an object.
600 That means the variable that this method can be called on, must
601 refer to a tag or a data-value positioned relative to a tag in an object.
602 Therefor this method only works if called upon such values.
603 <BR>
604 The methods return either a DateType-value or an object-value of a UserSession
605 object relating to the session when that tag or data-node was added to the object.
606 <BR>
607 The use of this method on a variable of any other valuetype
608 will raise this error.
609 </TD>
610 </TR>
611
612 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
613
614 <TR>
615 <TD BGCOLOR=lightsalmon ALIGN=CENTER VALIGN=MIDDLE><B>850</B></TD>
616 <TD VALIGN=TOP>Multiple declaration of table variable * in environment scope</TD>
617 <TD VALIGN=TOP>A table variable has been declared twice in the environment context of the query.
618 This is possibly an error in the application program that uses AQL.
619 </TD>
620 </TR>
621
622 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
623
624 <TR>
625 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>810</B></TD>
626 <TD VALIGN=TOP>Incinsistent value types in table column *</TD>
627 <TD VALIGN=TOP>caused by a query like
628 <DL><DD><CODE>select x[1],x[2],x[3],x[4] from x in object("<I>Class</I>","<I>Key</I>")</CODE></DL>
629 Depending on the model for objects of class <TT><I>Class</I></TT>, the object tree
630 might use different value-types for the data at deeper levels. So, the result-table gets
631 initialized with whatever type it finds first, and at a different branch in the tree that
632 maps to the same table column it may find tags of a different value type that can't be placed
633 in the same result-table column that has been created with a different type before.
634 </TD>
635 </TR>
636
637 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
638
639 <TR>
640 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>941</B></TD>
641 <TD VALIGN=TOP>Unrecognized class *</TD>
642 <TD VALIGN=TOP>caused by a query like
643 <DL><DD><CODE>select a->Field1 from a in class <I>Class1</I></CODE></DL>
644 where <TT><I>Class1</I></TT> is not a valid class in the database.
645 </TD>
646 </TR>
647
648 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
649
650 <TR>
651 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>942</B></TD>
652 <TD VALIGN=TOP>Unrecognized class * in construct object("&lt;class&gt;", ...)</TD>
653 <TD VALIGN=TOP>caused by a query like
654 <DL><DD><CODE>select all object ("<I>Sequqnce</I>", "KH462")</CODE></DL>
655 where <TT><I>Sequqnce</I></TT> is not a valid class in the database.
656 </TD>
657 </TR>
658
659 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
660
661 <TR>
662 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>952</B></TD>
663 <TD VALIGN=TOP>invalid value-type of left expression in object constructor</TD>
664 <TD VALIGN=TOP>caused by a query like
665 <DL><DD><CODE>select a, object(3.14, "Address") from a in class Author</CODE></DL>
666 Where the right expression <TT><I>3.14</I></TT> does not represent a key value of a class.
667 Only direct key values (i.e. <TT>class(a)</TT> in the above query) or string literals
668 yield key values in the object constructor.
669 </TD>
670 </TR>
671
672 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
673
674 <TR>
675 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>943</B></TD>
676 <TD VALIGN=TOP>Can't find *:* - object "*" not found in class "*"</TD>
677 <TD VALIGN=TOP>caused by a query like
678 <DL><DD><CODE>select a->address from a in object ("Author", "<I>martin</I>")</CODE></DL>
679 where the key <TT><I>martin</I></TT> does not exist in class <TT>Author</TT>.
680 </TD>
681 </TR>
682
683 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
684
685 <TR>
686 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>953</B></TD>
687 <TD VALIGN=TOP>invalid value-type of right expression in object constructor</TD>
688 <TD VALIGN=TOP>caused by a query like
689 <DL><DD><CODE>select a, object("paper", 3.14) from a in class Author</CODE></DL>
690 Where the right expression <TT><I>3.14</I></TT> does not represent a key value.
691 Only direct key values (i.e. <TT>a</TT> in the above query) or string literals
692 yield key values in the object constructor.
693 </TD>
694 </TR>
695
696 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
697
698 <TR>
699 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>944</B></TD>
700 <TD VALIGN=TOP>Unrecognized tag *</TD>
701 <TD VALIGN=TOP>caused by queries like
702 <DL><DD><CODE>select a-><I>Field1</I> from a in class Class1</CODE></DL>
703 <DL><DD><CODE>select all object("Class1", "Key")-><I>Field1</I></CODE></DL>
704 where the tag <TT><I>Field1</I></TT> does not exist in class <TT>Class1</TT>.
705 </TD>
706 </TR>
707
708 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
709
710 <TR>
711 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>900</B></TD>
712 <TD VALIGN=TOP>Follow position : Trying to dereference (->) something not an object</TD>
713 <TD VALIGN=TOP>
714 </TD>
715 </TR>
716
717 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
718
719 <TR>
720 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>901</B></TD>
721 <TD VALIGN=TOP>Follow tag : Trying to dereference (->) something not an object</TD>
722 <TD VALIGN=TOP>caused by a query like
723 <DL><DD><CODE>select a, b->Full_name from a in class author, b in a->Full_name</CODE></DL>
724 Only locators that return Key-type values can be dereferenced using the ARROW operator -&gt;.
725 In this case b is declared to be a->Full_name (let's say that's a string value), but the
726 select field tries to extract a tag from it (Full_name again), so this query is most probably
727 a typo.
728 </TD>
729 </TR>
730
731 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
732
733 <TR>
734 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>902</B></TD>
735 <TD VALIGN=TOP>Positioning within an object has to follow a tag</TD>
736 <TD VALIGN=TOP>caused by a queries like
737 <DL><DD><CODE>select a[1] from a in class Movie</CODE></DL>
738 <DL><DD><CODE>select ->0, [cast] from class movie</CODE></DL>
739 The notation that allows an iterator to position to a
740 tag or position within the references object has to
741 be base upon a tag and can't be rooted directly
742 at the object itself.<BR>
743 The notation <TT>[<I>tagname</I>]</TT> only makes
744 sense if used as <TT><I>obj</I>-><I>tag</I>[<I>positioning</I>]</TT>, where <I>positioning</I> is the number of steps to the
745 right or a name to jump to directly.
746 <P>
747 <B>Note</B>: It is always possible to write
748 <DL><DD><TT>a->Mail</TT></DL>
749 instead of
750 <DL><DD><TT>a->Address[Mail]</TT></DL>
751 </TD>
752 </TR>
753
754 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
755
756 <TR>
757 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>903</B></TD>
758 <TD VALIGN=TOP>Illegal argument to boolean clause `exists_tag' (tags-by-name only)</TD>
759 <TD VALIGN=TOP>caused by a query like
760 <DL><DD><CODE>... where exists_tag ->email[1]</CODE></DL>
761 The variable b is declared to move one to the right in the object model
762 of a which is from class Author. <P>
763 That is very ambiguous and only allowed by dereferencing an object using the follow-tag notation.
764 </TD>
765 </TR>
766
767 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
768
769 <TR>
770 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>960</B></TD>
771 <TD VALIGN=TOP>table combining operator - error in column *, value-type mismatch between the columns the two tables</TD>
772 <TD VALIGN=TOP>caused by a query like (find all American authors that haven't yet published)
773 <DL><DD><CODE>(select a->Full_name from a in class Author where a->address = "USA")<BR>
774 except<BR>
775 (select all class Author where exists ->Paper)
776 </CODE></DL>
777 According to database specific evaluation, the first query produces a table that is a list of strings,
778 whereas the second one returns a list of key-values.
779 <P>
780 The table operator can only combine row-compatible tables, i.e. the value types
781 have to match in each column of both tables.
782 </TD>
783 </TR>
784
785 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
786
787 <TR>
788 <TD BGCOLOR=lightseagreen ALIGN=CENTER VALIGN=MIDDLE><B>962</B></TD>
789 <TD VALIGN=TOP>table combining operator - value-type mismatch between the columns the two tables</TD>
790 <TD VALIGN=TOP>As error 962 - Sometimes the value-types of table columns aren't known until
791 both tables are fully computed. This might be the case, if a select-field
792 is calculated as an expression whose final value isn't known until the
793 database specific expression evaluation.
794 <BR>
795 Therefor a possible type mismatch (Error 960) remains unnoticed until after
796 complete construction of both tables.
797 This error will pick out any mismatches that occur during table evaluation.
798 </TD>
799 </TR>
800
801 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
802 <TR><TD COLSPAN=3 BGCOLOR=khaki ALIGN=CENTER><B>The causes of these errors will be fixed in the future</B></TD></TR>
803 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
804
805 <TR><TD COLSPAN=3><HR NOSHADE></TD></TR>
806
807 <TR>
808 <TD BGCOLOR=rosybrown ALIGN=CENTER VALIGN=MIDDLE><B>798</B></TD>
809 <TD VALIGN=TOP>Sorry : Unimplemented date-function weekdiff()</TD>
810 <TD VALIGN=TOP>The weekdiff() date-function hasn't been written yet (as of 991004)
811 </TD>
812 </TR>
813
814 </TABLE>
815
816 <!--********************************************************************************************************-->
817
818 <HR SIZE=5 NOSHADE>
819 <A NAME="COLORKEY"><H2 ALIGN=CENTER>Colour codes of error categories</H2></A>
820
821 <HR>
822
823 <TABLE BORDER=0 WIDTH=100% CELLPADDING=10 CELLSPACING=10>
824 <TR>
825 <TD BGCOLOR=red><B>Code Error</B></TD>
826 <TD>The code has detected an error which is probably the result of incorrect programming.
827 </TR>
828
829 <TR>
830 <TD BGCOLOR=lightyellow><B>Syntax Error</B></TD>
831 <TD>see <A HREF="syntax.shtml">AQL Syntax Document</A></TD>
832 </TR>
833
834 <TR>
835 <TD BGCOLOR=lightblue><B>Semantic Error</B></TD>
836 <TD>Although the query passes the syntax check, the query isn't allowed by the language specifications</TD>
837 </TR>
838
839 <TR>
840 <TD BGCOLOR=lightsalmon><B>Logical Error</B></TD>
841 <TD>Basically a semantic error as well, but probably just the wrong query.</TD>
842 </TR>
843
844 <TR>
845 <TD BGCOLOR=lightseagreen><B>Evaluation Error</B></TD>
846 <TD>The query fails, because the specific database that is being used</TD>
847 </TR>
848
849 <TR>
850 <TD BGCOLOR=rosybrown><B>Unimplemented feature</B></TD>
851 <TD>Query is not wrong, but uses a certain language feature, that is not yet implemented</TD>
852 </TR>
853
854 </TABLE>
855
856 <HR>
857 <ADDRESS><A HREF="mailto:[email protected]">[email protected]</A></ADDRESS>
858
859 </BODY>
860 </HTML>
861