Fix problems with date based queries
This commit is contained in:
parent
185f26d240
commit
b8c423321a
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue