Hi, Ivan.

  Unfortunately, right now I don't have access to the testing environment,
but there is a straightforward two-line fix, which should not break
anything.

 If you have any testing env, you may try that before applying, or wait
until I run the tests (may take some time).

On Fri, Mar 20, 2015 at 4:01 AM, Ivan Lagunov <lagi...@gmail.com> wrote:

> Hi Ilya,
>
> If you mean using se_exp utility, no, I have not used it. I cannot export
> the document as it's not in the database and it fails during loading.
>
> Best regards,
> Ivan Lagunov
>
>
> On Fri, Mar 20, 2015 at 7:35 AM, Ilya Taranov <epsi...@socio.msu.ru>
> wrote:
>
>> Most likely a limitation.
>>
>> I would suggest to export/import document, but I assume you already tried
>> to do that.
>>
>> I'll take a look.
>>
>> On Thu, Mar 19, 2015 at 8:38 AM, Ivan Lagunov <lagi...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I've got the following error when trying to LOAD a document into Sedna:
>>>
>>> SEDNA Message: ERROR SE2023
>>> [nid_assign] The length of prefix exceeds PSTRMAXSIZE.
>>>
>>> I've attached the troublesome document. The issue seems to be caused
>>> by the number/length of namespace declarations in the root element. When
>>> one namespace declaration is removed (e.g. xmlns:query), the document is
>>> loaded successfully.
>>>
>>> Did I hit a bug?
>>>
>>> Best regards,
>>> Ivan Lagunov
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming The Go Parallel Website,
>>> sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your hub
>>> for all
>>> things parallel software development, from weekly thought leadership
>>> blogs to
>>> news, videos, case studies, tutorials and more. Take a look and join the
>>> conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> Sedna-discussion mailing list
>>> Sedna-discussion@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>>>
>>>
>>
>
From e75c2ac85889f897985da77d5ab9b9596ae58f56 Mon Sep 17 00:00:00 2001
From: Ilya Taranov <i...@taranoff.net>
Date: Wed, 1 Apr 2015 01:53:29 -0700
Subject: [PATCH] * CMake fix (BISON, tired of that stuff) * BulkLoad
 statistics fix

---
 kernel/tr/updates/bulkload.cpp | 4 ++--
 kernel/tr/xqp/CMakeLists.txt   | 5 -----
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/kernel/tr/updates/bulkload.cpp b/kernel/tr/updates/bulkload.cpp
index e641847..e875586 100644
--- a/kernel/tr/updates/bulkload.cpp
+++ b/kernel/tr/updates/bulkload.cpp
@@ -271,7 +271,7 @@ class SchemaParser : public IElementProducer {
         parent(_parent), level(0), nextChildNamespaceCount(0), schemaNode(_schemaNode),
         textCount(0), commentCount(0), piCount(0), count(0)
     {
-        parent->nodeStatistics.push_back(0);
+        parent->nodeStatistics.push_back(1);
     }
 
     SchemaParser(SchemaParser * _parentParser, schema_node_cptr _schemaNode) :
@@ -312,7 +312,7 @@ class SchemaParser : public IElementProducer {
                     result->schemaNode->add_child(NULL_XMLNS, NULL, xml_namespace);
                 }
 
-                count += nextChildNamespaceCount;
+                result->count += nextChildNamespaceCount;
                 nextChildNamespaceCount = 0;
             }
 
diff --git a/kernel/tr/xqp/CMakeLists.txt b/kernel/tr/xqp/CMakeLists.txt
index 7bd2df8..8cff06e 100644
--- a/kernel/tr/xqp/CMakeLists.txt
+++ b/kernel/tr/xqp/CMakeLists.txt
@@ -17,11 +17,6 @@ if (BISON_FOUND)
         message(STATUS "Bison version is less than 2.3 -- cannot build parser")
         set(GEN_PARSER 0)
     endif (ver_res EQUAL -1)
-    COMPARE_VERSION_STRINGS("2.5" ${BISON_VERSION} ver_res)
-    if (ver_res EQUAL -1)
-        message(STATUS "Bison version is greater than 2.5 -- cannot build parser")
-        set(GEN_PARSER 0)
-    endif (ver_res EQUAL -1)
 else (BISON_FOUND)
         message(STATUS "Bison is not found -- cannot build parser")
         set(GEN_PARSER 0)
-- 
1.8.3.1

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to