1:
2: # include <sccs.h>
3: /*
4: **
5: ** @(#)errors.h 1.2 2/8/85
6: */
7: # define QBUFOVFLO 100 /*Qbuf overflow: query too large*/
8:
9:
10:
11:
12: # define NUMINTOCHAR 1000 /*In domain %0 numeric retrieved into char field.*/
13: # define NUMOVFLO 1001 /*Numeric overflow during retrieve on domain %0.*/
14: # define CHARINTONUM 1002 /*In domain %0, character retrieved into numeric variable.*/
15: # define BADRET 1003 /*Bad type in target list of parametrized retrieve "%0".*/
16: # define BADSTMT 1004 /*Bad type in target list of parametrized statement "%0".*/
17:
18:
19:
20:
21: # define SUMMARY 2000 /*%0 errors were found in quel program*/
22: # define NOATTRIN 2100 /*line %0, Attribute '%1' not in relation '%2'*/
23: # define RESTYPE 2103 /*line %0, Result domain type does not match type of expression*/
24: # define RVOPTYPE 2105 /*line %0, Relation valued operators only defined for relations*/
25: # define DBUOFLO 2106 /*line %0, Data base utility command buffer overflow*/
26: # define CANTUPDATE 2107 /*line %0, You are not allowed to update this relation: %1*/
27: # define RESAPPEX 2108 /*line %0, Result relation (%1) for APPEND does not exist or cannot be accessed by you*/
28: # define NOVBLE 2109 /*line %0, Variable '%1' not declared in RANGE statement*/
29: # define TOOMANYDOTS 2110 /*line %0, Too many dots in multi-dot attribute*/
30: # define 2111 /*line %0, Too many attributes in key for INDEX*/
31: # define RELCTYPE 2112 /*line %0, Invalid types for relation comparison*/
32: # define EMPTYTYPE 2113 /*line %0, Type of argument to empty() not relations*/
33: # define UORFTYPE 2114 /*line %0, Argument to unary or functional operator can't be RELATION*/
34: # define NOINDEX 2115 /*line %0, Pattern matching index must be given following the '##'*/
35: # define UNDEFCOP 2116 /*line %0, Undefined relation identifier or constant operator '%1'*/
36: # define RNGEXIST 2117 /*line %0, Invalid relation name '%1' in RANGE statement*/
37: # define TREEOFLO 2118 /*line %0, Out of space in query tree - Query too long*/
38: # define MODTYPE 2119 /*line %0, MOD operator not defined for floating point or character attributes*/
39: # define NOPATMAT 2120 /*line %0, most pattern match operators not allowed in the target list*/
40: # define CONCATTYPE 2121 /*line %0, Only character type domains are allowed in CONCAT operator*/
41: # define NOQUALINDX 2122 /*line %0, Pattern matching index mentioned in target but not qualifier*/
42: # define REPALL 2123 /*line %0, '%1.all' not defined for replace*/
43: # define DUPINDEX 2124 /*line %0, Pattern matching index repeated in qualifier*/
44: # define AVGTYPE 2125 /*line %0, Cannot use aggregates ("avg" or "avgu") on character values*/
45: # define SUMTYPE 2126 /*line %0, Cannot use aggregates ("sum" or "sumu") on character values*/
46: # define FOPTYPE 2127 /*line %0, Cannot use numerical functions (ATAN, COS, LOG, SIN, SQRT, EXP, ABS) on character values*/
47: # define UOPTYPE 2128 /*line %0, Cannot use unary operators ("+" or "-") on character values*/
48: # define NUMTYPE 2129 /*line %0, Numeric operations (+ - * /) not allowed on character values*/
49: # define RESXTRA 2130 /*line %0, Too many result domains in target list**/
50: # define TARGXTRA 2131 /*line %0, Target list too wide*/
51: # define AGGXTRA 2132 /*line %0, Too many aggregates in this query*/
52: # define RELTYPE 2133 /*line %0, Type conflict on relative operator*/
53: # define BADCONSTOP 2134 /*line %0, '%1' is not a constant operator. Only 'dba' or 'usercode' are allowed.*/
54: # define RESEXIST 2135 /*line %0, You cannot duplicate the name of an existing relation(%1)*/
55: # define BADHOURS 2136 /*line %0, There is no such hour as %1, use a 24 hour clock system*/
56: # define BADMINS 2137 /*line %0, There is no such minute as %1, use a 24 hour clock system*/
57: # define BAD24TIME 2138 /*line %0, There is no such time as 24:%1, use a 24 hour clock system*/
58: # define NOQRYMOD 2139 /*line %0, Your database does not support query modification*/
59:
60: /*2140 line %0, You may not call define query from inside define query~
61: 2141 line %0, Query %1 has not been defined~
62: 2142 line %0, No space left to define a query~
63: 2143 line %0, You can not use a $ if you are not defining a query~
64: 2144 line %0, There are no more variables left in the this defined query~
65: 2145 line %0, There are undefined variables in this defined query~
66: 2146 line %0, You can not have aggregates in a defined query~*/
67:
68: # define NOTSTAR 2147 /*line %0, Only '*' operator can appear immediately after command name*/
69: # define BADRELTL 2148 /*line %0, Target lists containing reln. expressions can have only 1 element*/
70: # define NORELEXP 2149 /*line %0, Relation expressions not allowed in target list of this cmd.*/
71: # define NXTCMDERR 2500 /*line %0, The word '%1', cannot follow this command*/
72:
73: /*2501 line %0, The word '%1', cannot follow a RETRIEVE command.~
74: 2502 line %0, The word '%1', cannot follow an APPEND command.~
75: 2503 line %0, The word '%1', cannot follow a REPLACE command.~
76: 2504 line %0, The word '%1', cannot follow a DELETE command.~
77: 2507 line %0, The word '%1', cannot follow a DESTROY command.~
78: 2508 line %0, The word '%1', cannot follow a HELP command.~
79: 2510 line %0, The word '%1', cannot follow a MODIFY command.~
80: 2511 line %0, The word '%1', cannot follow a PRINT command.~
81: 2515 line %0, The word '%1', cannot follow a RETRIEVE UNIQUE command.~
82: 2516 line %0, The word '%1', cannot follow a DEFINE VIEW command.~
83: 2519 line %0, The word '%1', cannot follow a HELP VIEW, HELP INTEGRITY,
84: or HELP PERMIT command.~
85: 2522 line %0, The word '%1', cannot follow a DEFINE PERMIT command.~
86: 2523 line %0, The word '%1', cannot follow a DEFINE INTEGRITY command.~
87: 2526 line %0, The word '%1', cannot follow a DESTROY INTEGRITY or
88: DESTROY PERMIT command.~
89: 2528 line %0, The word '%1', cannot follow a DEFINE QUERY command.~
90: */
91: # define SYMERR 2600 /*syntax error on line %0 last symbol read was: %1*/
92: /*
93: 2601 line %0, Syntax error on '%1', the correct syntax is:
94: RETRIEVE [[INTO]relname] (target_list) [WHERE qual]
95: RETRIEVE UNIQUE (target_list) [WHERE qual]~
96: 2602 line %0, Syntax error on '%1', the correct syntax is:
97: APPEND [TO] relname (target_list) [WHERE qual]~
98: 2603 line %0, Syntax error on '%1', the correct syntax is:
99: REPLACE tuple_variable (target_list) [WHERE qual]~
100: 2604 line %0, Syntax error on '%1', the correct syntax is:
101: DELETE tuple_variable [WHERE qual]~
102: 2605 line %0, Syntax error on '%1', the correct syntax is:
103: COPY relname (domname = format {, domname = format}) direction "filename"~
104: 2606 line %0, Syntax error on '%1', the correct syntax is:
105: CREATE relname (domname1 = format{, domname2 = format})~
106: 2607 line %0, Syntax error on '%1', the correct syntax is:
107: DESTROY relname {,relname}
108: DESTROY [PERMIT | INTEGRITY] relname [integer{, integer} | ALL]~
109: 2609 line %0, Syntax error on '%1', the correct syntax is:
110: INDEX ON relname IS indexname (domain1{, domain2}) ~
111: 2610 line %0, Syntax error on '%1', the correct syntax is:
112: MODIFY relname TO storage-structure [ON key1 [: sortorder] [{, key2 [:sortorder]}]]
113: [WHERE [FILLFACTOR = n] [, MINPAGES = n] [, MAXPAGES = n] [, LID = name]]~
114: 2611 line %0, Syntax error on '%1', the correct syntax is:
115: PRINT relname{, relname}~
116: 2612 line %0, Syntax error on '%1', the correct syntax is:
117: RANGE OF variable IS relname~
118: 2613 line %0, Syntax error on '%1', the correct syntax is:
119: SAVE relname UNTIL month day year~
120: 2614 line %0, Syntax error on '%1', the correct syntax is:
121: DEFINE VIEW name (target list) [WHERE qual]
122: DEFINE PERMIT oplist {ON|OF|TO} var [(attlist]
123: TO name [AT term] [FROM time TO time]
124: [ON day TO day] [WHERE qual]
125: DEFINE INTEGRITY ON var IS qual~
126: 2615 line %0, Syntax error on '%1', the correct syntax is:
127: RETRIEVE UNIQUE (target_list) [WHERE qual]~
128: 2616 line %0, Syntax error on '%1', the correct syntax is:
129: DEFINE VIEW name (target_list) [WHERE qual]~
130: 2619 line %0, Syntax error on '%1', the correct syntax is:
131: HELP VIEW relname[, relname]
132: HELP PERMIT relname[, relname]
133: HELP INTEGRITY relname[, relname]~
134: 2622 line %0, Syntax error on '%1', the correct syntax is:
135: DEFINE PERMIT oplist {ON|OF|TO} var [(attlist)]
136: TO name [AT term] [FROM time TO time]
137: [ON day TO day] [WHERE qual]~
138: 2623 line %0, Syntax error on '%1', the correct syntax is:
139: DEFINE INTEGRITY ON var IS qual~
140: 2626 line %0, Syntax error on '%1', the correct syntax is:
141: DESTROY INTEGRITY relname [ integer { , integer } | all ]~
142: 2628 line %0, Syntax error on '%1', the correct syntax is:
143: EXEC (target_list) [WHERE qual]~
144: */
145:
146: # define STRTERM 2700 /*line %0, non-terminated string*/
147: # define STRLONG 2701 /*line %0, string too long*/
148: # define BADOP 2702 /*line %0, invalid operator*/
149: # define NAMELONG 2703 /*line %0, Name too long '%1'*/
150: # define SBUFOFLO 2704 /*line %0, Out of space in symbol table - Query too long*/
151: # define COMMTERM 2705 /*line %0, non-terminated comment*/
152: # define FCONSTERR 2707 /*line %0, bad floating constant: %1*/
153: # define CNTRLCHR 2708 /*line %0, control character passed in pre-converted string*/
154: # define NUMBUFOFLO 2709 /*line %0, buffer overflow in converting a number*/
155: # define BADBNF 2710 /*line %0, illegal BNF string*/
156: # define NOGRP 2711 /*line %0, may not unuse a group which has never been used*/
157: # define DELEXIST 2712 /*line %0, group of delims does not exist*/
158: # define YOVRFLOW 2800 /*line %0, yacc stack overflow in parsing query*/
159:
160:
161:
162:
163:
164: # define TOOMANYVARS 3100 /*Too many variables on relation '%0'*/
165: # define NOUPDATEDOM 3310 /*%0 on view %1: cannot update some domain*/
166:
167: /*3320 %0 on view %1: domain occurs in qualification of view~*/
168:
169: # define MOREQUERY 3330 /*%0 on view %1: update would result in more than one query*/
170: # define VIEWTIDS 3340 /*%0 on view %1: views do not have TID's*/
171: # define NOUPDATEAGG 3350 /*%0 on view %1: cannot update an aggregate value*/
172: # define NONFUNCUPDATE 3360 /*%0 on view %1: that update might be non-functional*/
173: # define NOAGGINT 3490 /*INTEGRITY on %1: cannot handle aggregates yet*/
174: # define NOMULTIVAR 3491 /*INTEGRITY on %1: cannot handle multivariable constraints*/
175: # define INITCONST 3492 /*INTEGRITY on %1: constraint does not initially hold*/
176: # define INTVIEW 3493 /*INTEGRITY: %1 is a view*/
177: # define MUSTOWN 3494 /*INTEGRITY: You must own '%1'*/
178: # define PVIOL 3500 /*%0 on relation %1: protection violation*/
179: # define BADTERM 3590 /*PERMIT: bad terminal identifier "%2"*/
180: # define BADUSRNAME 3591 /*PERMIT: bad user name "%2"*/
181: # define OWNEDNOT 3592 /*PERMIT: Relation '%1' not owned by you*/
182: # define NOTREALREL 3593 /*PERMIT: Relation '%1' must be a real relation (not a view)*/
183: # define BADDOW 3594 /*PERMIT on %1: bad day-of-week '%2'*/
184: # define NOTDBA 3595 /*PERMIT on %1: only the DBA can use the PERMIT statement*/
185: /*3700 Tree buffer overflow in query modification~*/
186: # define STACKFULL 3701 /*Tree build stack overflow in query modification*/
187:
188:
189:
190:
191:
192: # define LISTFULL 4100 /*ovqp query list overflowed*/
193: # define BADCONV 4101
194: # define BADUOPC 4102
195: # define BADMIX 4103 /*Type clash on characters and int/floats*/
196: # define BADSUMC 4104
197: # define BADAVG 4105
198: # define STACKOVER 4106 /*the interpreters stack overflowed -- query too long*/
199: # define CBUFULL 4107 /*the buffer for ASCII and CONCAT commands overflowed*/
200: # define BADCHAR 4108 /*cannot use arithmetic operators on two character fields*/
201: # define NUMERIC 4109 /*cannot use numeric values with CONCAT operator*/
202: # define FLOATEXCEP 4110 /*floating point exception occured.*/
203: # define CHARCONVERT 4111 /*character value cannot be converted to numeric due to incorrect syntax.*/
204: # define NODOVFLOW 4112 /*ovqp query vector overflowed*/
205: # define COMPNOSP 4113 /*compiler text space ran out.*/
206: # define COMPNOREGS 4114 /*compiler ran out of registers.*/
207: # define BADEXECTYPE 4115 /*only character string data may be executed*/
208: # define BADDELIM 4116 /*that delimitor has not been defined*/
209: # define BADSECINDX 4199 /*you must convert your 6.0 secondary index before running this query!*/
210: # define NODESCAG 4602 /*query involves too many relations to create aggregate function intermediate result.*/
211: # define QBUFFULL 4610 /*Query too long for available buffer space (qbufsize)*/
212: /*4611 Query too long for available buffer space (varbufsiz)*/
213: # define SQBUFFULL 4612 /*Query too long for available buffer space (sqsiz)*/
214: /*4613 Query too long for available buffer space (stacksiz)*/
215: # define AGBUFFULL 4614 /*Query too long for available buffer space (agbufsiz)*/
216: # define AGFTOBIG 4615 /*Aggregate function is too wide or has too many domains.*/
217: # define TOOMANYAGGS 4616 /*Too many aggregates*/
218: # define RETUTOBIG 4620 /*Target list for "retrieve unique" has more than 49 domains or is wider than 498 bytes.*/
219:
220:
221:
222:
223:
224: # define BADRELNAME 5001 /*PRINT: bad relation name %0*/
225: # define NOPRINTVIEW 5002 /*PRINT: %0 is a view and can't be printed*/
226: # define PROTVIOL 5003 /*PRINT: Relation %0 is protected.*/
227: # define DUPRELNAME 5102 /*CREATE: duplicate relation name %0*/
228: # define SYSRELNAME 5103 /*CREATE: %0 is a system relation*/
229: # define BADATTRNAME 5104 /*CREATE %0: invalid attribute name %1*/
230: # define DUPATTRNAME 5105 /*CREATE %0: duplicate attribute name %1*/
231: # define BADATTRFORMAT 5106 /*CREATE %0: invalid attribute format "%2" on attribute %1*/
232: # define TOOMANYDOMS 5107 /*CREATE %0: excessive domain count on attribute %1*/
233: # define RELTOOWIDE 5108 /*CREATE %0: excessive relation width on attribute %1*/
234: # define NODESTSYSREL 5201 /*DESTROY: %0 is a system relation*/
235: # define RELNOEXIST 5202 /*DESTROY: %0 does not exist or is not owned by you*/
236: # define BADINTEG 5203 /*DESTROY: %0 is an invalid integrity constraint identifier*/
237: # define BADPROT 5204 /*DESTROY: %0 is an invalid protection constraint identifier*/
238: # define NOPRIMREL 5300 /*INDEX: cannot find primary relation*/
239: # define TOOMUCHDOMS 5301 /*INDEX: more than maximum number of domains*/
240: # define NODOM 5302 /*INDEX: invalid domain %0*/
241: # define NOTOWNED 5303 /*INDEX: relation %0 not owned by you*/
242: # define ALREADYINDX 5304 /*INDEX: relation %0 is already an index*/
243: # define NOINDXSYSREL 5305 /*INDEX: relation %0 is a system relation*/
244: # define NOINDVIEW 5306 /*INDEX: %0 is a view and an index can't be built on it*/
245: # define NOINDXLID 5307 /*INDEX: %0: can't index on lid attribute "%1"*/
246: # define DISPERRBASE 5400 /* base for error messages in display()*/
247: # define NORELEXIST 5401 /*HELP: relation %0 does not exist*/
248: # define NOMANSEC 5402 /*HELP: cannot find manual section "%0"*/
249: # define NOTVIEW 5403 /*HELP: relation %0 is not a view*/
250: # define NOPERMS 5404 /*HELP: relation %0 has no permissions on it granted*/
251: # define NOINTEG 5405 /*HELP: relation %0 has no integrity constraints on it*/
252: # define TBUFOVFLO 5410 /*HELP: tree buffer overflowed*/
253: # define TSTACKOVFLO 5411 /*HELP: tree stack overflowed*/
254: # define RDELIMERR 5412 /*HELP: can't read rdelim*/
255: # define NOREL 5500 /*MODIFY: relation %0 does not exist*/
256: # define NOOWN 5501 /*MODIFY: you do not own relation %0*/
257: # define NOKEYSHEAP 5502 /*MODIFY %0: you may not provide keys on a heap*/
258: /*5503 MODIFY %0: too many keys provided~ */
259: # define NOMODSYSREL 5504 /*MODIFY %0: cannot modify system relation*/
260: # define NOORDINDX 5505 /*MODIFY %0: cannot order a relation that is an index*/
261: # define TOOMANYORDKEYS 5506 /*MODIFY %0: provided too many ordering keys*/
262: # define DUPKEY 5507 /*MODIFY %0: duplicate key "%1"*/
263: # define TOOWIDEISAM 5508 /*MODIFY %0: key width (%1) too large for isam*/
264: # define ATTRREMV 5509 /*MODIFY %0: attribute "%1" will be removed during modification, can't be used*/
265: # define BADSTORAGE 5510 /*MODIFY %0: bad storage structure "%1"*/
266: # define NOTALLOWED 5512 /*MODIFY %0: "%1" not allowed or specified more than once*/
267: # define FILLBOUND 5513 /*MODIFY %0: fillfactor value %1 out of bounds*/
268: # define MINPGBOUND 5514 /*MODIFY %0: minpages value %1 out of bounds*/
269: # define NEEDFILL 5515 /*MODIFY %0: "%1" should be "fillfactor", "maxpages", "minpages" or "lidn" where n <= ordering dimension*/
270: # define MAXPGBOUND 5516 /*MODIFY %0: maxpages value %1 out of bounds*/
271: # define MINGTMAX 5517 /*MODIFY %0: minpages value exceeds maxpages value*/
272: # define INVALIDSEQ 5518 /*MODIFY %0: invalid sequence specifier "%1" for domain %2.*/
273: # define NOMODVIEW 5519 /*MODIFY: %0 is a view and can't be modified*/
274: # define BADSEQSPEC 5520 /*MODIFY: %0: sequence specifier "%1" on domain %2 is not allowed with the specified storage structure.*/
275: # define INVALIDATTR 5521 /*MODIFY: %0: invalid attribute name %1*/
276:
277: /*5522 MODIFY: %0 is an ordered relation with only one attribute~*/
278:
279: # define BADORDDIM 5523 /*MODIFY %0: Bad ordering dimension %1*/
280: # define NOSAVESYSREL 5600 /*SAVE: cannot save system relation "%0"*/
281: # define BADMONTH 5601 /*SAVE: bad month "%0"*/
282: # define BADDAY 5602 /*SAVE: bad day "%0"*/
283: # define BADYEAR 5603 /*SAVE: bad year "%0"*/
284: # define RELNOTFOUND 5604 /*SAVE: relation %0 does not exist or is not owned by you*/
285: # define BADLID1 5701 /*UPDATE: %0: bad lid value
286: ** Lid1 = %1
287: */
288: # define BADLID2 5702 /*UPDATE: %0: bad lid value
289: ** Lid1 = %1
290: ** Lid2 = %2
291: */
292: # define BADLID3 5703 /*UPDATE: %0: bad lid value
293: ** Lid1 = %1
294: ** Lid2 = %2
295: ** Lid3 = %3
296: */
297: # define NOEXIST 5800 /*COPY: relation %0 doesn't exist*/
298: # define ATTRNOEXIST 5801 /*COPY: attribute %0 in relation %1 doesn't exist or it has been listed twice.*/
299: # define TOOMANYATTR 5803 /*COPY: too many attributes*/
300: # define BADATTRLEN 5804 /*COPY: bad length for attribute %0. Length="%1"*/
301: # define NOFILEOPN 5805 /*COPY: can't open file %0*/
302: # define NOFILECRT 5806 /*COPY: can't create file %0*/
303: # define UNRECDUMMY 5807 /*COPY: unrecognizable dummy domain "%0"*/
304: # define DOMTOOSMALL 5808 /*COPY: domain %0 size too small for conversion. There were %2 tuples successfully copied from %3 into %4*/
305: # define BADINPUT 5809 /*COPY: bad input string for domain %0. Input was "%1". There were %2 tuples successfully copyied from %3 into %4*/
306: # define UNEXEOF 5810 /*COPY: unexpected end of file while filling domain %0. There were %1 tuples successfully copyied from %2 into %3*/
307: # define BADATTRTYPE 5811 /*COPY: bad type for attribute %0. Type="%1"*/
308: # define DESTINDEX 5812 /*COPY: The relation "%0" has a secondary index. The index(es) must be destroyed before doing a copy "from".*/
309: # define NOUPDT 5813 /*COPY: You are not allowed to update the relation %0.*/
310: # define NOTOWNER 5814 /* COPY: You do not own the relation %0.*/
311: # define UNDETC0 5815 /*COPY: An unterminated "c0" field occured while filling domain %0. There were %1 tuples successfully copyied from %2 into %3*/
312: # define FULLPATH 5816 /*COPY: The full pathname must be specified for the file %0*/
313: # define FILETOOWIDE 5817 /*COPY: The maximum width of the output file cannot exceed 1024 bytes per tuple.*/
314: # define NOCPVIEW 5818 /*COPY: %0 is a view and can't be copied*/
315: # define DUPTUPS 5819 /*COPY: Warning: %0 duplicate tuples were ignored.*/
316: # define BADDOMS 5820 /*COPY: Warning: %0 domains had control characters which were converted to blanks.*/
317: # define TRUNCCHARS 5821 /*COPY: Warning: %0 c0 character domains were truncated.*/
318: # define RELPROTECT 5822 /*COPY: Relation %0 is protected.*/
319:
320:
321:
322:
323: /*6110 CREATE GLOBAL: Relation %0 already exists at site %1~
324: 6600 Aggregates on distributed relations not yet implemented.~
325: 6601 Multi-variable distributed queries not yet implemented.~
326: */