fixed date value matching
authoradam <anton@adamansky.com>
Thu, 24 Jan 2013 10:29:37 +0000 (17:29 +0700)
committeradam <anton@adamansky.com>
Thu, 24 Jan 2013 10:29:37 +0000 (17:29 +0700)
package.json
tcejdb/configure
tcejdb/configure.ac
tcejdb/ejdb.c

index 03a3155..6f21897 100644 (file)
@@ -1,6 +1,6 @@
 {
     "name" : "ejdb",
-    "version" : "1.0.56",
+    "version" : "1.0.57",
     "main" : "node/ejdb.js",
     "homepage" : "http://ejdb.org",
     "description" : "EJDB - Embedded JSON Database engine",
index 02e8021..6a8b2bb 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for tcejdb 1.0.56.
+# Generated by GNU Autoconf 2.69 for tcejdb 1.0.57.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -577,8 +577,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='tcejdb'
 PACKAGE_TARNAME='tcejdb'
-PACKAGE_VERSION='1.0.56'
-PACKAGE_STRING='tcejdb 1.0.56'
+PACKAGE_VERSION='1.0.57'
+PACKAGE_STRING='tcejdb 1.0.57'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1258,7 +1258,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures tcejdb 1.0.56 to adapt to many kinds of systems.
+\`configure' configures tcejdb 1.0.57 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1319,7 +1319,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of tcejdb 1.0.56:";;
+     short | recursive ) echo "Configuration of tcejdb 1.0.57:";;
    esac
   cat <<\_ACEOF
 
@@ -1426,7 +1426,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-tcejdb configure 1.0.56
+tcejdb configure 1.0.57
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1724,7 +1724,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by tcejdb $as_me 1.0.56, which was
+It was created by tcejdb $as_me 1.0.57, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -4894,7 +4894,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by tcejdb $as_me 1.0.56, which was
+This file was extended by tcejdb $as_me 1.0.57, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -4947,7 +4947,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-tcejdb config.status 1.0.56
+tcejdb config.status 1.0.57
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
index 80c5a06..8d87657 100644 (file)
@@ -11,7 +11,7 @@ test -n "$CPPFLAGS" && MYCPPFLAGS="$CPPFLAGS $MYCPPFLAGS"
 test -n "$LDFLAGS" && MYLDFLAGS="$LDFLAGS $MYLDFLAGS"
 
 # Package name
-AC_INIT(tcejdb, 1.0.56)
+AC_INIT(tcejdb, 1.0.57)
 
 # Package information
 MYLIBVER=9
index 5c9756e..94f4cc5 100644 (file)
@@ -3733,12 +3733,13 @@ static int _parse_qobj_impl(EJDB *jb, EJQ *q, bson_iterator *it, TCLIST *qlist,
             case BSON_LONG:
             case BSON_DOUBLE:
             case BSON_INT:
+            case BSON_DATE:
             {
                 assert(!qf.fpath && !qf.expr);
                 qf.ftype = ftype;
                 qf.fpath = tcstrjoin(pathStack, '.');
                 qf.fpathsz = strlen(qf.fpath);
-                if (ftype == BSON_LONG || ftype == BSON_INT) {
+                if (ftype == BSON_LONG || ftype == BSON_INT || ftype == BSON_DATE) {
                     qf.exprlongval = bson_iterator_long(it);
                     qf.exprdblval = qf.exprlongval;
                     qf.expr = tcsprintf("%ld", qf.exprlongval);