Commit 4ebd3f9a authored by heikki@hundin.mysql.fi's avatar heikki@hundin.mysql.fi
Browse files

dict0dict.c:

  If the string foreign was succeeded by a non-space character, that confused the foreign key syntax parser
parent 4eb0f28e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1983,7 +1983,7 @@ dict_create_foreign_constraints(
	ptr = dict_accept(ptr, "FOREIGN", &success);		
	
	if (!isspace(*ptr)) {
		return(DB_CANNOT_ADD_CONSTRAINT);
	        goto loop;
	}

	ptr = dict_accept(ptr, "KEY", &success);