From: scottmk Date: Thu, 12 Aug 2010 03:22:10 +0000 (+0000) Subject: Complain when a sequence name is not qualified by a schema. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a6caaacb74026acaeae7cf170a574164d30f46d6;p=contrib%2FConifer.git Complain when a sequence name is not qualified by a schema. M Open-ILS/src/c-apps/idlval.c git-svn-id: svn://svn.open-ils.org/ILS/trunk@17180 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/c-apps/idlval.c b/Open-ILS/src/c-apps/idlval.c index d786484531..38ce79ee17 100644 --- a/Open-ILS/src/c-apps/idlval.c +++ b/Open-ILS/src/c-apps/idlval.c @@ -733,13 +733,18 @@ static int val_fields_attributes( Class* class, const char* id, xmlNodePtr field xmlGetLineNo( fields ), id ); rc = 1; } - } else if( !strcmp( attr_name, "sequence" ) ) { + } else if( !strcmp( attr_name, "sequence" )) { sequence = xmlGetProp( fields, (xmlChar*) "sequence" ); if( '\0' == sequence[0] ) { printf( "Line %ld: value of sequence attribute is an empty string for class \"%s\"\n", xmlGetLineNo( fields ), id ); rc = 1; + } else if( !strchr( (const char*) sequence, '.' )) { + printf( + "Line %ld: name of sequence for class \"%s\" is not qualified by schema\n", + xmlGetLineNo( fields ), id ); + rc = 1; } } else { printf( "Line %ld: Unexpected fields attribute \"%s\" in class \"%s\"\n",