Fix problems with date based queries

This commit is contained in:
Ron Pedde 2006-03-19 06:43:32 +00:00
parent 185f26d240
commit b8c423321a
2 changed files with 3 additions and 3 deletions

View File

@ -29,8 +29,6 @@ int main(int argc, char *argv[]) {
int err;
char *perr;
err_setdebugmask("parser");
while((option = getopt(argc, argv, "d:t:c:")) != -1) {
switch(option) {
case 'c':
@ -48,6 +46,8 @@ int main(int argc, char *argv[]) {
}
}
err_setdebugmask("parse");
if(conf_read(configfile) != CONF_E_SUCCESS) {
fprintf(stderr,"could not read config file: %s\n",configfile);
exit(1);

View File

@ -1137,7 +1137,7 @@ SP_NODE *sp_parse_date_criterion(PARSETREE tree) {
}
if(result) {
sp_scan(tree,SP_HINT_DATE);
sp_scan(tree,SP_HINT_NONE);
/* should be sitting on a date */
if((pnew->right.tvalue = sp_parse_date(tree))) {
result=1;