Нi all.
I have a problem when creating a very simple trigger:
1) CREATE DOCUMENT 'test1'
2) UPDATE INSERT <test /> into doc('test1')
3) CREATE TRIGGER "testtr"
BEFORE INSERT
ON doc("test1")//test
FOR EACH STATEMENT
DO
{
    (<test_trigger />);
}

Log text (event.log):
LOG   04/12/2013 17:49:57 (TRN RAVANA5 pid=12536 sid=48 trid=49)
[tr_functions.cpp:on_user_statement_begin:102]: User query:
---   CREATE TRIGGER "testtr"
---   BEFORE INSERT
---   ON doc("test1")//test
---   FOR EACH STATEMENT
---   DO
---   {
---       (<test_trigger />);
---   }
ERROR 04/12/2013 17:49:57 (TRN RAVANA5 pid=12536 sid=48 trid=49)
[XQueryDriver.cpp:sedna::XQueryDriver::emitErrors:87]: (XPST0003) It is a
static error if an expression is not a valid instance of the grammar defined
in A.1 EBNF. Details: at (1:320), syntax error, unexpected QName, expecting
"," or )
---           
ERROR 04/12/2013 17:49:57 (TRN RAVANA5 pid=12536 sid=48 trid=49)
[XQuerytoLR.cpp:build_subquery_qep:169]: (SE1003) Sedna internal error.
Details: Error on parsing internal subquery!
LOG   04/12/2013 17:49:57 (TRN RAVANA5 pid=12536 sid=48 trid=-1)
[tr_common_funcs.cpp:on_transaction_end:416]: Transaction has been ROLLED BACK

What i'm doing wrong here?
SEDNA version is 3.5.161 (32bit Release)
System: Windows 6.1.7601 (SP1.0) x86

Thank you for your advice.


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to