Login | Register
My pages Projects Community openCollabNet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Catacomb] Versioning fix



Hi here is a patch for versioned resource. The version 0.9.0 can not create temporary table because the column name is not set for some fields, the error is in ' ' entry:

--- dbms.c      2004-02-14 12:34:39.000000000 +0100
+++ dbms.c.orig 2004-02-14 12:24:19.000000000 +0100
@@ -2279,22 +2279,22 @@
   q = dbms_prepare(pool, &(db->db),
                      "CREATE temporary table tmp_resforvcr "
                      "SELECT serialno, "
-                       "?+0+0 AS version,"
+                       "?+0+0,"
                      "URI,"
-                       "? AS creationdate,"
+                       "?,"
                      "displayname,"
                      "getcontentlanguage,"
                      "getcontentlength,"
                      "getcontenttype,"
-                       "null AS getetag," /* For getetag */
-                       "?+0 AS getlastmodified,"
+                       "null," /* For getetag */
+                       "?+0,"
                      "resourcetype,"
                      "source,"
                      "depth,"
                      "istext, "
                      "textcontent, "
                      "bincontent, "
-                       "'' AS author "
+                       "'' "
                      "FROM dasl_resource "
                      "WHERE serialno=?");
   dbms_set_int(q, 1, version);

Now my Catacomb works with versioning. Good so.

I have another problem:
I am developing a Java app with slide and I have found out that the PROPFIND method getting getcontentlength and getcontenttype return getcontentlength twice. First I thought it is the usage of apr_hash, but replacing it with apr_table did not work.

And a question:
I can not find support for DASL query-schema-discovery. Did I miss something. If there is no support does anyone plan to implement it?

Kind regards, Miha Setina