[CWB] Query lock violation

Alberto Simões ambs at di.uminho.pt
Wed Nov 24 15:13:40 CET 2010


Hello, Andrew

On 24/11/2010 14:07, Hardie, Andrew wrote:
> 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.

Hmms... but then, what's a query? I tried just  "europe";  and it didn't 
work as well. Probably I am not understanding the term correctly :)

Thanks
Alberto

>
> 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


More information about the CWB mailing list