[CWB] Query lock violation
Hardie, Andrew
a.hardie at lancaster.ac.uk
Wed Nov 24 15:07:27 CET 2010
The exec_query method only allows you to execute a query; you'll get an error message if you attempt any other command. This is for safety in web interfaces where user-submitted data might be passed to CQP (with query lock on, the damage malicious input can do is limited). For your purposes, use ::exec not ::exec_query.
best
Andrew.
-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Alberto Simões
Sent: 24 November 2010 13:56
To: Open source development of the Corpus WorkBench
Subject: [CWB] Query lock violation
Hello
I was trying to use CWB::CQP exec_query method, with
@lines = $cwb->exec_query($query);
where $query holds
A = "europa"; cat A;
But I get
WARNING: query lock violation attempted
PARSE ERROR
Any hint on what's going on?
Thank you in advance,
Alberto
--
Alberto Simões
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb
More information about the CWB
mailing list