if (illegalchars[(int)*s++])
return MR_BAD_CHAR;
}
+ if (!*s)
+ return MR_RESERVED;
/* check for length */
tname = table_name[vo->table];
*c = toupper(*c);
}
}
+ if (!*name)
+ return MR_RESERVED;
sprintf(stmt_buf, "SELECT DISTINCT COUNT(*) FROM %s WHERE %s.%s = '%s'",
table_name[vo->table], table_name[vo->table], namefield, name);
dosql(sqlbuffer);
*c = toupper(*c);
}
}
+ if (!*name)
+ return MR_RESERVED;
namefield = vo->namefield;
idfield = vo->idfield;
id = -1;