|
9 | 9 | *
|
10 | 10 | *
|
11 | 11 | * IDENTIFICATION
|
12 |
| - * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.78 2000/10/29 16:11:33 petere Exp $ |
| 12 | + * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.79 2000/10/30 17:54:16 petere Exp $ |
13 | 13 | *
|
14 | 14 | *-------------------------------------------------------------------------
|
15 | 15 | */
|
| 16 | +#include"postgres.h" |
| 17 | + |
16 | 18 | #include<ctype.h>
|
17 | 19 | #include<unistd.h>
|
18 | 20 | #ifndef __linux__
|
19 | 21 | #include<math.h>
|
20 | 22 | #endif
|
21 | 23 | #include<errno.h>
|
22 | 24 |
|
23 |
| -#include"postgres.h" |
24 |
| - |
25 | 25 | #include"miscadmin.h"
|
26 | 26 | #include"nodes/parsenodes.h"
|
27 | 27 | #include"nodes/pg_list.h"
|
@@ -347,6 +347,8 @@ other.
|
347 | 347 | }
|
348 | 348 | <xd>{xdstop}{
|
349 | 349 | BEGIN(INITIAL);
|
| 350 | +if (strlen(literalbuf) ==0) |
| 351 | +elog(ERROR,"zero-length delimited identifier"); |
350 | 352 | if (strlen(literalbuf) >= NAMEDATALEN)
|
351 | 353 | {
|
352 | 354 | #ifdef MULTIBYTE
|
|