Bugs item #2690141, was opened at 2009-03-17 15:23
Message generated for change (Comment added) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2690141&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PFtijah
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Vera Hollink (vhollink)
Assigned to: Jan Flokstra (jflokstra)
>Summary: PFtijah: tokenize() fails when applied to result of concat()

Initial Comment:
mclient gives an error on the following code:

return <item> {tijah:tokenize(concat($record/Bijschrift_NL/text(), " Hallo 
wereld!"))} </item>

I get the error:

ERROR = !fatal error: column 'pos15' with type '0xB00001' not found in 
environment
       !# halted in ../../../../source/pathfinder/compiler/mil/milgen.brg 
(env_mvar_), line 704


The following `partial' queries do give correct results:

return <item> {tijah:tokenize("Hallo wereld!")} </item>

return <item> {concat($record/Bijschrift_NL/text(), " Hallo wereld!")} </item> 


----------------------------------------------------------------------

>Comment By: Stefan Manegold (stmane)
Date: 2009-08-14 13:55

Message:
tagged subject

----------------------------------------------------------------------

Comment By: Jan Flokstra (jflokstra)
Date: 2009-03-18 10:24

Message:
This is the polymorphic pos problem which keeps bothering is. This case is
different because for tokenize() I do not use the pack/unpack scheme used
for other functions. I first tried to use the empty dummypos I used in in
the pack/unpack scheme but ran into CTrefine errors with non-matching bats.
Could not solve this and I now detect polymorphic pos bats and retrieve pos
from the env by using only the aat_pre type. This works for my small
examples, like

for $d in doc("dilbert.xml")//bubble
        return tijah:tokenize(concat($d/text(),"newtail"))

I fixed it in Stable so it could take some time before it is also in
Current,

JanF.

----------------------------------------------------------------------

Comment By: Henning Rode (hrode)
Date: 2009-03-17 15:32

Message:
hej jan, i just guess we have a problem here in the iter/item/pos handling
for this function:
to make debugging easier you can use any other collection/document an
reproduce the same error:
tijah:tokenize(concat((pf:collection("thesis")//thesis//text()),
"hello"))

btw. it works this way correctly:
tijah:tokenize(concat(string-join((pf:collection("thesis")//thesis//text()),
""), "hello"))
maybe that helps.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2690141&group_id=56967

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to