66 * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
77 * Portions Copyright (c) 1994, Regents of the University of California
88 *
9- *$Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.228 2002/04/09 20:35:51 tgl Exp $
9+ *$Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.229 2002/04/12 19:11:49 tgl Exp $
1010 *
1111 *-------------------------------------------------------------------------
1212 */
@@ -3204,8 +3204,8 @@ analyzeCreateSchemaStmt(CreateSchemaStmt *stmt)
32043204
32053205if (elp -> relation -> schemaname == NULL )
32063206elp -> relation -> schemaname = cxt .schemaname ;
3207- else if (strcmp (cxt .schemaname ,elp -> relation -> schemaname ))
3208- elog (ERROR ,"New tablerefers to a schema (%s)"
3207+ else if (strcmp (cxt .schemaname ,elp -> relation -> schemaname )!= 0 )
3208+ elog (ERROR ,"New tablespecifies a schema (%s)"
32093209" different from the one being created (%s)" ,
32103210elp -> relation -> schemaname ,cxt .schemaname );
32113211
@@ -3223,8 +3223,8 @@ analyzeCreateSchemaStmt(CreateSchemaStmt *stmt)
32233223
32243224if (elp -> view -> schemaname == NULL )
32253225elp -> view -> schemaname = cxt .schemaname ;
3226- else if (strcmp (cxt .schemaname ,elp -> view -> schemaname ))
3227- elog (ERROR ,"New viewrefers to a schema (%s)"
3226+ else if (strcmp (cxt .schemaname ,elp -> view -> schemaname )!= 0 )
3227+ elog (ERROR ,"New viewspecifies a schema (%s)"
32283228" different from the one being created (%s)" ,
32293229elp -> view -> schemaname ,cxt .schemaname );
32303230